Functions

Primary tabs

Name Locationsort ascending Description Direct uses Strings
assertStringEqualsFile drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Assert/Functions.php Asserts that the contents of a string is equal to the contents of a file.
assertStringEndsWith drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Assert/Functions.php Asserts that a string ends with a given prefix.
assertStringEndsNotWith drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Assert/Functions.php Asserts that a string ends not with a given prefix.
assertSelectRegExp drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Assert/Functions.php assertSelectRegExp("#binder .name", "/Mike|Derek/", true, $xml); // any? assertSelectRegExp("#binder .name", "/Mike|Derek/", 3, $xml);// 3?
assertSelectEquals drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Assert/Functions.php assertSelectEquals("#binder .name", "Chuck", true, $xml); // any? assertSelectEquals("#binder .name", "Chuck", false, $xml); // none?
assertSelectCount drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Assert/Functions.php Assert the presence, absence, or count of elements in a document matching the CSS $selector, regardless of the contents of those elements.
assertSameSize drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Assert/Functions.php Assert that the size of two arrays (or `Countable` or `Iterator` objects) is the same.
assertSame drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Assert/Functions.php Asserts that two variables have the same type and value. Used on objects, it asserts that two variables reference the same object.
assertRegExp drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Assert/Functions.php Asserts that a string matches a given regular expression.
assertObjectNotHasAttribute drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Assert/Functions.php Asserts that an object does not have a specified attribute.
assertObjectHasAttribute drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Assert/Functions.php Asserts that an object has a specified attribute.
assertNull drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Assert/Functions.php Asserts that a variable is NULL. 1
assertNotTag drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Assert/Functions.php This assertion is the exact opposite of assertTag().
assertNotSameSize drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Assert/Functions.php Assert that the size of two arrays (or `Countable` or `Iterator` objects) is not the same.
assertNotSame drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Assert/Functions.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.
assertNotRegExp drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Assert/Functions.php Asserts that a string does not match a given regular expression.
assertNotNull drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Assert/Functions.php Asserts that a variable is not NULL. 1
assertNotInternalType drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Assert/Functions.php Asserts that a variable is not of a given type.
assertNotInstanceOf drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Assert/Functions.php Asserts that a variable is not of a given type.
assertNotEquals drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Assert/Functions.php Asserts that two variables are not equal.
assertNotEmpty drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Assert/Functions.php Asserts that a variable is not empty.
assertNotCount drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Assert/Functions.php Asserts the number of elements of an array, Countable or Iterator.
assertNotContainsOnly drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Assert/Functions.php Asserts that a haystack does not contain only values of a given type.
assertNotContains drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Assert/Functions.php Asserts that a haystack does not contain a needle.
assertLessThanOrEqual drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Assert/Functions.php Asserts that a value is smaller than or equal to another value.
assertLessThan drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Assert/Functions.php Asserts that a value is smaller than another value.
assertJsonStringNotEqualsJsonString drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Assert/Functions.php Asserts that two given JSON encoded objects or arrays are not equal.
assertJsonStringNotEqualsJsonFile drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Assert/Functions.php Asserts that the generated JSON encoded object and the content of the given file are not equal.
assertJsonStringEqualsJsonString drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Assert/Functions.php Asserts that two given JSON encoded objects or arrays are equal.
assertJsonStringEqualsJsonFile drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Assert/Functions.php Asserts that the generated JSON encoded object and the content of the given file are equal.
assertJsonFileNotEqualsJsonFile drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Assert/Functions.php Asserts that two JSON files are not equal.
assertJsonFileEqualsJsonFile drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Assert/Functions.php Asserts that two JSON files are equal.
assertJson drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Assert/Functions.php Asserts that a string is a valid JSON string.
assertInternalType drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Assert/Functions.php Asserts that a variable is of a given type.
assertInstanceOf drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Assert/Functions.php Asserts that a variable is of a given type.
assertGreaterThanOrEqual drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Assert/Functions.php Asserts that a value is greater than or equal to another value.
assertGreaterThan drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Assert/Functions.php Asserts that a value is greater than another value.
assertFileNotExists drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Assert/Functions.php Asserts that a file does not exist.
assertFileNotEquals drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Assert/Functions.php Asserts that the contents of one file is not equal to the contents of another file.
assertFileExists drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Assert/Functions.php Asserts that a file exists.
assertFileEquals drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Assert/Functions.php Asserts that the contents of one file is equal to the contents of another file.
assertFalse drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Assert/Functions.php Asserts that a condition is false. 1
assertEquals drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Assert/Functions.php Asserts that two variables are equal.
assertEqualXMLStructure drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Assert/Functions.php Asserts that a hierarchy of DOMElements matches.
assertEmpty drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Assert/Functions.php Asserts that a variable is empty.
assertCount drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Assert/Functions.php Asserts the number of elements of an array, Countable or Iterator.
assertContainsOnlyInstancesOf drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Assert/Functions.php Asserts that a haystack contains only instances of a given classname
assertContainsOnly drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Assert/Functions.php Asserts that a haystack contains only values of a given type.
assertContains drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Assert/Functions.php Asserts that a haystack contains a needle.
assertClassNotHasStaticAttribute drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Assert/Functions.php Asserts that a class does not have a specified static attribute.

Pages

Other projects