Skip to main content
Hostdog docs
Documentation & API reference
Main menu
Drupal 7
Drupal 8
Drupal 9
You are here
Home
»
API reference
»
Drupal 8.x
»
Assert.php
»
PHPUnit_Framework_Assert
»
PHPUnit_Framework_Assert::assertThat
Search Drupal 8.x
Function, class, file, topic, etc.
*
Partial match search is supported
API Navigation
Drupal 8.x
Topics
Classes
Functions
Files
Namespaces
Services
Constants
Globals
Deprecated
79 calls to PHPUnit_Framework_Assert::assertThat()
Framework_AssertTest::testAssertThatAnything
in drupal/
core/
vendor/
phpunit/
phpunit/
Tests/
Framework/
AssertTest.php
@covers PHPUnit_Framework_Assert::assertThat @covers PHPUnit_Framework_Assert::anything
Framework_AssertTest::testAssertThatAnythingAndAnything
in drupal/
core/
vendor/
phpunit/
phpunit/
Tests/
Framework/
AssertTest.php
@covers PHPUnit_Framework_Assert::assertThat @covers PHPUnit_Framework_Assert::anything @covers PHPUnit_Framework_Assert::logicalAnd
Framework_AssertTest::testAssertThatAnythingOrAnything
in drupal/
core/
vendor/
phpunit/
phpunit/
Tests/
Framework/
AssertTest.php
@covers PHPUnit_Framework_Assert::assertThat @covers PHPUnit_Framework_Assert::anything @covers PHPUnit_Framework_Assert::logicalOr
Framework_AssertTest::testAssertThatAnythingXorNotAnything
in drupal/
core/
vendor/
phpunit/
phpunit/
Tests/
Framework/
AssertTest.php
@covers PHPUnit_Framework_Assert::assertThat @covers PHPUnit_Framework_Assert::anything @covers PHPUnit_Framework_Assert::logicalNot @covers PHPUnit_Framework_Assert::logicalXor
Framework_AssertTest::testAssertThatArrayHasKey
in drupal/
core/
vendor/
phpunit/
phpunit/
Tests/
Framework/
AssertTest.php
@covers PHPUnit_Framework_Assert::assertThat @covers PHPUnit_Framework_Assert::arrayHasKey
Framework_AssertTest::testAssertThatAttributeEquals
in drupal/
core/
vendor/
phpunit/
phpunit/
Tests/
Framework/
AssertTest.php
@covers PHPUnit_Framework_Assert::assertThat @covers PHPUnit_Framework_Assert::attribute @covers PHPUnit_Framework_Assert::equalTo
Framework_AssertTest::testAssertThatAttributeEquals2
in drupal/
core/
vendor/
phpunit/
phpunit/
Tests/
Framework/
AssertTest.php
@covers PHPUnit_Framework_Assert::assertThat @covers PHPUnit_Framework_Assert::attribute @covers PHPUnit_Framework_Assert::equalTo @expectedException PHPUnit_Framework_AssertionFailedError
Framework_AssertTest::testAssertThatAttributeEqualTo
in drupal/
core/
vendor/
phpunit/
phpunit/
Tests/
Framework/
AssertTest.php
@covers PHPUnit_Framework_Assert::assertThat @covers PHPUnit_Framework_Assert::attribute @covers PHPUnit_Framework_Assert::equalTo
Framework_AssertTest::testAssertThatClassHasAttribute
in drupal/
core/
vendor/
phpunit/
phpunit/
Tests/
Framework/
AssertTest.php
@covers PHPUnit_Framework_Assert::assertThat @covers PHPUnit_Framework_Assert::classHasAttribute
Framework_AssertTest::testAssertThatClassHasStaticAttribute
in drupal/
core/
vendor/
phpunit/
phpunit/
Tests/
Framework/
AssertTest.php
@covers PHPUnit_Framework_Assert::assertThat @covers PHPUnit_Framework_Assert::classHasStaticAttribute
Framework_AssertTest::testAssertThatContains
in drupal/
core/
vendor/
phpunit/
phpunit/
Tests/
Framework/
AssertTest.php
@covers PHPUnit_Framework_Assert::assertThat @covers PHPUnit_Framework_Assert::contains
Framework_AssertTest::testAssertThatContainsOnly
in drupal/
core/
vendor/
phpunit/
phpunit/
Tests/
Framework/
AssertTest.php
@covers PHPUnit_Framework_Assert::assertThat @covers PHPUnit_Framework_Assert::containsOnly
Framework_AssertTest::testAssertThatContainsOnlyInstancesOf
in drupal/
core/
vendor/
phpunit/
phpunit/
Tests/
Framework/
AssertTest.php
@covers PHPUnit_Framework_Assert::assertThat @covers PHPUnit_Framework_Assert::containsOnlyInstancesOf
Framework_AssertTest::testAssertThatEqualTo
in drupal/
core/
vendor/
phpunit/
phpunit/
Tests/
Framework/
AssertTest.php
@covers PHPUnit_Framework_Assert::assertThat @covers PHPUnit_Framework_Assert::equalTo
Framework_AssertTest::testAssertThatFileExists
in drupal/
core/
vendor/
phpunit/
phpunit/
Tests/
Framework/
AssertTest.php
@covers PHPUnit_Framework_Assert::assertThat @covers PHPUnit_Framework_Assert::fileExists
Framework_AssertTest::testAssertThatGreaterThan
in drupal/
core/
vendor/
phpunit/
phpunit/
Tests/
Framework/
AssertTest.php
@covers PHPUnit_Framework_Assert::assertThat @covers PHPUnit_Framework_Assert::greaterThan
Framework_AssertTest::testAssertThatGreaterThanOrEqual
in drupal/
core/
vendor/
phpunit/
phpunit/
Tests/
Framework/
AssertTest.php
@covers PHPUnit_Framework_Assert::assertThat @covers PHPUnit_Framework_Assert::greaterThanOrEqual
Framework_AssertTest::testAssertThatIdenticalTo
in drupal/
core/
vendor/
phpunit/
phpunit/
Tests/
Framework/
AssertTest.php
@covers PHPUnit_Framework_Assert::assertThat @covers PHPUnit_Framework_Assert::identicalTo
Framework_AssertTest::testAssertThatIsInstanceOf
in drupal/
core/
vendor/
phpunit/
phpunit/
Tests/
Framework/
AssertTest.php
@covers PHPUnit_Framework_Assert::assertThat @covers PHPUnit_Framework_Assert::isInstanceOf
Framework_AssertTest::testAssertThatIsType
in drupal/
core/
vendor/
phpunit/
phpunit/
Tests/
Framework/
AssertTest.php
@covers PHPUnit_Framework_Assert::assertThat @covers PHPUnit_Framework_Assert::isType
Framework_AssertTest::testAssertThatLessThan
in drupal/
core/
vendor/
phpunit/
phpunit/
Tests/
Framework/
AssertTest.php
@covers PHPUnit_Framework_Assert::assertThat @covers PHPUnit_Framework_Assert::lessThan
Framework_AssertTest::testAssertThatLessThanOrEqual
in drupal/
core/
vendor/
phpunit/
phpunit/
Tests/
Framework/
AssertTest.php
@covers PHPUnit_Framework_Assert::assertThat @covers PHPUnit_Framework_Assert::lessThanOrEqual
Framework_AssertTest::testAssertThatMatchesRegularExpression
in drupal/
core/
vendor/
phpunit/
phpunit/
Tests/
Framework/
AssertTest.php
@covers PHPUnit_Framework_Assert::assertThat @covers PHPUnit_Framework_Assert::matchesRegularExpression
Framework_AssertTest::testAssertThatObjectHasAttribute
in drupal/
core/
vendor/
phpunit/
phpunit/
Tests/
Framework/
AssertTest.php
@covers PHPUnit_Framework_Assert::assertThat @covers PHPUnit_Framework_Assert::objectHasAttribute
Framework_AssertTest::testAssertThatStringContains
in drupal/
core/
vendor/
phpunit/
phpunit/
Tests/
Framework/
AssertTest.php
@covers PHPUnit_Framework_Assert::assertThat @covers PHPUnit_Framework_Assert::stringContains
PHPUnit_Framework_Assert::assertArrayHasKey
in drupal/
core/
vendor/
phpunit/
phpunit/
PHPUnit/
Framework/
Assert.php
Asserts that an array has a specified key.
PHPUnit_Framework_Assert::assertArrayNotHasKey
in drupal/
core/
vendor/
phpunit/
phpunit/
PHPUnit/
Framework/
Assert.php
Asserts that an array does not have a specified key.
PHPUnit_Framework_Assert::assertClassHasAttribute
in drupal/
core/
vendor/
phpunit/
phpunit/
PHPUnit/
Framework/
Assert.php
Asserts that a class has a specified attribute.
PHPUnit_Framework_Assert::assertClassHasStaticAttribute
in drupal/
core/
vendor/
phpunit/
phpunit/
PHPUnit/
Framework/
Assert.php
Asserts that a class has a specified static attribute.
PHPUnit_Framework_Assert::assertClassNotHasAttribute
in drupal/
core/
vendor/
phpunit/
phpunit/
PHPUnit/
Framework/
Assert.php
Asserts that a class does not have a specified attribute.
PHPUnit_Framework_Assert::assertClassNotHasStaticAttribute
in drupal/
core/
vendor/
phpunit/
phpunit/
PHPUnit/
Framework/
Assert.php
Asserts that a class does not have a specified static attribute.
PHPUnit_Framework_Assert::assertContains
in drupal/
core/
vendor/
phpunit/
phpunit/
PHPUnit/
Framework/
Assert.php
Asserts that a haystack contains a needle.
PHPUnit_Framework_Assert::assertContainsOnly
in drupal/
core/
vendor/
phpunit/
phpunit/
PHPUnit/
Framework/
Assert.php
Asserts that a haystack contains only values of a given type.
PHPUnit_Framework_Assert::assertContainsOnlyInstancesOf
in drupal/
core/
vendor/
phpunit/
phpunit/
PHPUnit/
Framework/
Assert.php
Asserts that a haystack contains only instances of a given classname
PHPUnit_Framework_Assert::assertCount
in drupal/
core/
vendor/
phpunit/
phpunit/
PHPUnit/
Framework/
Assert.php
Asserts the number of elements of an array, Countable or Iterator.
PHPUnit_Framework_Assert::assertEmpty
in drupal/
core/
vendor/
phpunit/
phpunit/
PHPUnit/
Framework/
Assert.php
Asserts that a variable is empty.
PHPUnit_Framework_Assert::assertEquals
in drupal/
core/
vendor/
phpunit/
phpunit/
PHPUnit/
Framework/
Assert.php
Asserts that two variables are equal.
PHPUnit_Framework_Assert::assertFalse
in drupal/
core/
vendor/
phpunit/
phpunit/
PHPUnit/
Framework/
Assert.php
Asserts that a condition is false.
PHPUnit_Framework_Assert::assertFileExists
in drupal/
core/
vendor/
phpunit/
phpunit/
PHPUnit/
Framework/
Assert.php
Asserts that a file exists.
PHPUnit_Framework_Assert::assertFileNotExists
in drupal/
core/
vendor/
phpunit/
phpunit/
PHPUnit/
Framework/
Assert.php
Asserts that a file does not exist.
PHPUnit_Framework_Assert::assertGreaterThan
in drupal/
core/
vendor/
phpunit/
phpunit/
PHPUnit/
Framework/
Assert.php
Asserts that a value is greater than another value.
PHPUnit_Framework_Assert::assertGreaterThanOrEqual
in drupal/
core/
vendor/
phpunit/
phpunit/
PHPUnit/
Framework/
Assert.php
Asserts that a value is greater than or equal to another value.
PHPUnit_Framework_Assert::assertInstanceOf
in drupal/
core/
vendor/
phpunit/
phpunit/
PHPUnit/
Framework/
Assert.php
Asserts that a variable is of a given type.
PHPUnit_Framework_Assert::assertInternalType
in drupal/
core/
vendor/
phpunit/
phpunit/
PHPUnit/
Framework/
Assert.php
Asserts that a variable is of a given type.
PHPUnit_Framework_Assert::assertJson
in drupal/
core/
vendor/
phpunit/
phpunit/
PHPUnit/
Framework/
Assert.php
Asserts that a string is a valid JSON string.
PHPUnit_Framework_Assert::assertJsonFileEqualsJsonFile
in drupal/
core/
vendor/
phpunit/
phpunit/
PHPUnit/
Framework/
Assert.php
Asserts that two JSON files are equal.
PHPUnit_Framework_Assert::assertJsonFileNotEqualsJsonFile
in drupal/
core/
vendor/
phpunit/
phpunit/
PHPUnit/
Framework/
Assert.php
Asserts that two JSON files are not equal.
PHPUnit_Framework_Assert::assertJsonStringEqualsJsonFile
in drupal/
core/
vendor/
phpunit/
phpunit/
PHPUnit/
Framework/
Assert.php
Asserts that the generated JSON encoded object and the content of the given file are equal.
PHPUnit_Framework_Assert::assertJsonStringNotEqualsJsonFile
in drupal/
core/
vendor/
phpunit/
phpunit/
PHPUnit/
Framework/
Assert.php
Asserts that the generated JSON encoded object and the content of the given file are not equal.
PHPUnit_Framework_Assert::assertLessThan
in drupal/
core/
vendor/
phpunit/
phpunit/
PHPUnit/
Framework/
Assert.php
Asserts that a value is smaller than another value.
PHPUnit_Framework_Assert::assertLessThanOrEqual
in drupal/
core/
vendor/
phpunit/
phpunit/
PHPUnit/
Framework/
Assert.php
Asserts that a value is smaller than or equal to another value.
PHPUnit_Framework_Assert::assertNotContains
in drupal/
core/
vendor/
phpunit/
phpunit/
PHPUnit/
Framework/
Assert.php
Asserts that a haystack does not contain a needle.
PHPUnit_Framework_Assert::assertNotContainsOnly
in drupal/
core/
vendor/
phpunit/
phpunit/
PHPUnit/
Framework/
Assert.php
Asserts that a haystack does not contain only values of a given type.
PHPUnit_Framework_Assert::assertNotCount
in drupal/
core/
vendor/
phpunit/
phpunit/
PHPUnit/
Framework/
Assert.php
Asserts the number of elements of an array, Countable or Iterator.
PHPUnit_Framework_Assert::assertNotEmpty
in drupal/
core/
vendor/
phpunit/
phpunit/
PHPUnit/
Framework/
Assert.php
Asserts that a variable is not empty.
PHPUnit_Framework_Assert::assertNotEquals
in drupal/
core/
vendor/
phpunit/
phpunit/
PHPUnit/
Framework/
Assert.php
Asserts that two variables are not equal.
PHPUnit_Framework_Assert::assertNotInstanceOf
in drupal/
core/
vendor/
phpunit/
phpunit/
PHPUnit/
Framework/
Assert.php
Asserts that a variable is not of a given type.
PHPUnit_Framework_Assert::assertNotInternalType
in drupal/
core/
vendor/
phpunit/
phpunit/
PHPUnit/
Framework/
Assert.php
Asserts that a variable is not of a given type.
PHPUnit_Framework_Assert::assertNotNull
in drupal/
core/
vendor/
phpunit/
phpunit/
PHPUnit/
Framework/
Assert.php
Asserts that a variable is not NULL.
PHPUnit_Framework_Assert::assertNotRegExp
in drupal/
core/
vendor/
phpunit/
phpunit/
PHPUnit/
Framework/
Assert.php
Asserts that a string does not match a given regular expression.
PHPUnit_Framework_Assert::assertNotSame
in drupal/
core/
vendor/
phpunit/
phpunit/
PHPUnit/
Framework/
Assert.php
Asserts that two variables do not have the same type and value. Used on objects, it asserts that two variables do not reference the same object.
PHPUnit_Framework_Assert::assertNotSameSize
in drupal/
core/
vendor/
phpunit/
phpunit/
PHPUnit/
Framework/
Assert.php
Assert that the size of two arrays (or `Countable` or `Iterator` objects) is not the same.
PHPUnit_Framework_Assert::assertNull
in drupal/
core/
vendor/
phpunit/
phpunit/
PHPUnit/
Framework/
Assert.php
Asserts that a variable is NULL.
PHPUnit_Framework_Assert::assertObjectHasAttribute
in drupal/
core/
vendor/
phpunit/
phpunit/
PHPUnit/
Framework/
Assert.php
Asserts that an object has a specified attribute.
PHPUnit_Framework_Assert::assertObjectNotHasAttribute
in drupal/
core/
vendor/
phpunit/
phpunit/
PHPUnit/
Framework/
Assert.php
Asserts that an object does not have a specified attribute.
PHPUnit_Framework_Assert::assertRegExp
in drupal/
core/
vendor/
phpunit/
phpunit/
PHPUnit/
Framework/
Assert.php
Asserts that a string matches a given regular expression.
PHPUnit_Framework_Assert::assertSame
in drupal/
core/
vendor/
phpunit/
phpunit/
PHPUnit/
Framework/
Assert.php
Asserts that two variables have the same type and value. Used on objects, it asserts that two variables reference the same object.
PHPUnit_Framework_Assert::assertSameSize
in drupal/
core/
vendor/
phpunit/
phpunit/
PHPUnit/
Framework/
Assert.php
Assert that the size of two arrays (or `Countable` or `Iterator` objects) is the same.
PHPUnit_Framework_Assert::assertStringEndsNotWith
in drupal/
core/
vendor/
phpunit/
phpunit/
PHPUnit/
Framework/
Assert.php
Asserts that a string ends not with a given prefix.
PHPUnit_Framework_Assert::assertStringEndsWith
in drupal/
core/
vendor/
phpunit/
phpunit/
PHPUnit/
Framework/
Assert.php
Asserts that a string ends with a given prefix.
PHPUnit_Framework_Assert::assertStringMatchesFormat
in drupal/
core/
vendor/
phpunit/
phpunit/
PHPUnit/
Framework/
Assert.php
Asserts that a string matches a given format string.
PHPUnit_Framework_Assert::assertStringMatchesFormatFile
in drupal/
core/
vendor/
phpunit/
phpunit/
PHPUnit/
Framework/
Assert.php
Asserts that a string matches a given format file.
PHPUnit_Framework_Assert::assertStringNotMatchesFormat
in drupal/
core/
vendor/
phpunit/
phpunit/
PHPUnit/
Framework/
Assert.php
Asserts that a string does not match a given format string.
PHPUnit_Framework_Assert::assertStringNotMatchesFormatFile
in drupal/
core/
vendor/
phpunit/
phpunit/
PHPUnit/
Framework/
Assert.php
Asserts that a string does not match a given format string.
PHPUnit_Framework_Assert::assertStringStartsNotWith
in drupal/
core/
vendor/
phpunit/
phpunit/
PHPUnit/
Framework/
Assert.php
Asserts that a string starts not with a given prefix.
PHPUnit_Framework_Assert::assertStringStartsWith
in drupal/
core/
vendor/
phpunit/
phpunit/
PHPUnit/
Framework/
Assert.php
Asserts that a string starts with a given prefix.
PHPUnit_Framework_Assert::assertTrue
in drupal/
core/
vendor/
phpunit/
phpunit/
PHPUnit/
Framework/
Assert.php
Asserts that a condition is true.
PHPUnit_Framework_TestCase::runTest
in drupal/
core/
vendor/
phpunit/
phpunit/
PHPUnit/
Framework/
TestCase.php
Override to run the test and assert its state.
Twig_Test_IntegrationTestCase::doIntegrationTest
in drupal/
core/
vendor/
twig/
twig/
lib/
Twig/
Test/
IntegrationTestCase.php