GITHUB_ISSUE
public
mixed
GITHUB_ISSUE
= 797
public
mixed
GITHUB_ISSUE
= 797
composerRequire2ef2a2ba0d77843a47848d922e944464(mixed $fileIdentifier, mixed $file) : mixed
globalFunction() : mixed
baz() : mixed
baz() : mixed
foo(mixed $bar) : mixed
foo(mixed $a, array<string|int, mixed> $b[, array<string|int, mixed> $c = array() ]) : mixed
Returns a matcher that matches when the method is executed zero or more times.
any() : PHPUnit_Framework_MockObject_Matcher_AnyInvokedCount
Returns a PHPUnit_Framework_Constraint_IsAnything matcher object.
anything() : PHPUnit_Framework_Constraint_IsAnything
Returns a PHPUnit_Framework_Constraint_ArrayHasKey matcher object.
arrayHasKey(mixed $key) : PHPUnit_Framework_Constraint_ArrayHasKey
Asserts that an array has a specified key.
assertArrayHasKey(mixed $key, array<string|int, mixed>|ArrayAccess $array[, string $message = '' ]) : mixed
Asserts that an array has a specified subset.
assertArraySubset(array<string|int, mixed>|ArrayAccess $subset, array<string|int, mixed>|ArrayAccess $array[, bool $strict = false ][, string $message = '' ]) : mixed
Check for object identity
Asserts that an array does not have a specified key.
assertArrayNotHasKey(mixed $key, array<string|int, mixed>|ArrayAccess $array[, string $message = '' ]) : mixed
Asserts that a haystack that is stored in a static attribute of a class or an attribute of an object contains a needle.
assertAttributeContains(mixed $needle, string $haystackAttributeName, mixed $haystackClassOrObject[, string $message = '' ][, bool $ignoreCase = false ][, bool $checkForObjectIdentity = true ][, bool $checkForNonObjectIdentity = false ]) : mixed
Asserts that a haystack that is stored in a static attribute of a class or an attribute of an object contains only values of a given type.
assertAttributeContainsOnly(string $type, string $haystackAttributeName, mixed $haystackClassOrObject[, bool $isNativeType = null ][, string $message = '' ]) : mixed
Asserts the number of elements of an array, Countable or Traversable that is stored in an attribute.
assertAttributeCount(int $expectedCount, string $haystackAttributeName, mixed $haystackClassOrObject[, string $message = '' ]) : mixed
Asserts that a static attribute of a class or an attribute of an object is empty.
assertAttributeEmpty(string $haystackAttributeName, mixed $haystackClassOrObject[, string $message = '' ]) : mixed
Asserts that a variable is equal to an attribute of an object.
assertAttributeEquals(mixed $expected, string $actualAttributeName, string $actualClassOrObject[, string $message = '' ][, float $delta = 0.0 ][, int $maxDepth = 10 ][, bool $canonicalize = false ][, bool $ignoreCase = false ]) : mixed
Asserts that an attribute is greater than another value.
assertAttributeGreaterThan(mixed $expected, string $actualAttributeName, string $actualClassOrObject[, string $message = '' ]) : mixed
Asserts that an attribute is greater than or equal to another value.
assertAttributeGreaterThanOrEqual(mixed $expected, string $actualAttributeName, string $actualClassOrObject[, string $message = '' ]) : mixed
Asserts that an attribute is of a given type.
assertAttributeInstanceOf(string $expected, string $attributeName, mixed $classOrObject[, string $message = '' ]) : mixed
Asserts that an attribute is of a given type.
assertAttributeInternalType(string $expected, string $attributeName, mixed $classOrObject[, string $message = '' ]) : mixed
Asserts that an attribute is smaller than another value.
assertAttributeLessThan(mixed $expected, string $actualAttributeName, string $actualClassOrObject[, string $message = '' ]) : mixed
Asserts that an attribute is smaller than or equal to another value.
assertAttributeLessThanOrEqual(mixed $expected, string $actualAttributeName, string $actualClassOrObject[, string $message = '' ]) : mixed
Asserts that a haystack that is stored in a static attribute of a class or an attribute of an object does not contain a needle.
assertAttributeNotContains(mixed $needle, string $haystackAttributeName, mixed $haystackClassOrObject[, string $message = '' ][, bool $ignoreCase = false ][, bool $checkForObjectIdentity = true ][, bool $checkForNonObjectIdentity = false ]) : mixed
Asserts that a haystack that is stored in a static attribute of a class or an attribute of an object does not contain only values of a given type.
assertAttributeNotContainsOnly(string $type, string $haystackAttributeName, mixed $haystackClassOrObject[, bool $isNativeType = null ][, string $message = '' ]) : mixed
Asserts the number of elements of an array, Countable or Traversable that is stored in an attribute.
assertAttributeNotCount(int $expectedCount, string $haystackAttributeName, mixed $haystackClassOrObject[, string $message = '' ]) : mixed
Asserts that a static attribute of a class or an attribute of an object is not empty.
assertAttributeNotEmpty(string $haystackAttributeName, mixed $haystackClassOrObject[, string $message = '' ]) : mixed
Asserts that a variable is not equal to an attribute of an object.
assertAttributeNotEquals(mixed $expected, string $actualAttributeName, string $actualClassOrObject[, string $message = '' ][, float $delta = 0.0 ][, int $maxDepth = 10 ][, bool $canonicalize = false ][, bool $ignoreCase = false ]) : mixed
Asserts that an attribute is of a given type.
assertAttributeNotInstanceOf(string $expected, string $attributeName, mixed $classOrObject[, string $message = '' ]) : mixed
Asserts that an attribute is of a given type.
assertAttributeNotInternalType(string $expected, string $attributeName, mixed $classOrObject[, string $message = '' ]) : mixed
Asserts that a variable and an attribute of an object do not have the same type and value.
assertAttributeNotSame(mixed $expected, string $actualAttributeName, object $actualClassOrObject[, string $message = '' ]) : mixed
Asserts that a variable and an attribute of an object have the same type and value.
assertAttributeSame(mixed $expected, string $actualAttributeName, object $actualClassOrObject[, string $message = '' ]) : mixed
Asserts that a class has a specified attribute.
assertClassHasAttribute(string $attributeName, string $className[, string $message = '' ]) : mixed
Asserts that a class has a specified static attribute.
assertClassHasStaticAttribute(string $attributeName, string $className[, string $message = '' ]) : mixed
Asserts that a class does not have a specified attribute.
assertClassNotHasAttribute(string $attributeName, string $className[, string $message = '' ]) : mixed
Asserts that a class does not have a specified static attribute.
assertClassNotHasStaticAttribute(string $attributeName, string $className[, string $message = '' ]) : mixed
Asserts that a haystack contains a needle.
assertContains(mixed $needle, mixed $haystack[, string $message = '' ][, bool $ignoreCase = false ][, bool $checkForObjectIdentity = true ][, bool $checkForNonObjectIdentity = false ]) : mixed
Asserts that a haystack contains only values of a given type.
assertContainsOnly(string $type, mixed $haystack[, bool $isNativeType = null ][, string $message = '' ]) : mixed
Asserts that a haystack contains only instances of a given classname
assertContainsOnlyInstancesOf(string $classname, array<string|int, mixed>|Traversable $haystack[, string $message = '' ]) : mixed
Asserts the number of elements of an array, Countable or Traversable.
assertCount(int $expectedCount, mixed $haystack[, string $message = '' ]) : mixed
Asserts that a variable is empty.
assertEmpty(mixed $actual[, string $message = '' ]) : mixed
Asserts that a hierarchy of DOMElements matches.
assertEqualXMLStructure(DOMElement $expectedElement, DOMElement $actualElement[, bool $checkAttributes = false ][, string $message = '' ]) : mixed
Asserts that two variables are equal.
assertEquals(mixed $expected, mixed $actual[, string $message = '' ][, float $delta = 0.0 ][, int $maxDepth = 10 ][, bool $canonicalize = false ][, bool $ignoreCase = false ]) : mixed
Asserts that a condition is not true.
assertNotTrue(bool $condition[, string $message = '' ]) : mixed
Asserts that a condition is false.
assertFalse(bool $condition[, string $message = '' ]) : mixed
Asserts that the contents of one file is equal to the contents of another file.
assertFileEquals(string $expected, string $actual[, string $message = '' ][, bool $canonicalize = false ][, bool $ignoreCase = false ]) : mixed
Asserts that a file exists.
assertFileExists(string $filename[, string $message = '' ]) : mixed
Asserts that the contents of one file is not equal to the contents of another file.
assertFileNotEquals(string $expected, string $actual[, string $message = '' ][, bool $canonicalize = false ][, bool $ignoreCase = false ]) : mixed
Asserts that a file does not exist.
assertFileNotExists(string $filename[, string $message = '' ]) : mixed
Asserts that a value is greater than another value.
assertGreaterThan(mixed $expected, mixed $actual[, string $message = '' ]) : mixed
Asserts that a value is greater than or equal to another value.
assertGreaterThanOrEqual(mixed $expected, mixed $actual[, string $message = '' ]) : mixed
Asserts that a variable is of a given type.
assertInstanceOf(string $expected, mixed $actual[, string $message = '' ]) : mixed
Asserts that a variable is of a given type.
assertInternalType(string $expected, mixed $actual[, string $message = '' ]) : mixed
Asserts that a string is a valid JSON string.
assertJson(string $actualJson[, string $message = '' ]) : mixed
Asserts that two JSON files are equal.
assertJsonFileEqualsJsonFile(string $expectedFile, string $actualFile[, string $message = '' ]) : mixed
Asserts that two JSON files are not equal.
assertJsonFileNotEqualsJsonFile(string $expectedFile, string $actualFile[, string $message = '' ]) : mixed
Asserts that the generated JSON encoded object and the content of the given file are equal.
assertJsonStringEqualsJsonFile(string $expectedFile, string $actualJson[, string $message = '' ]) : mixed
Asserts that two given JSON encoded objects or arrays are equal.
assertJsonStringEqualsJsonString(string $expectedJson, string $actualJson[, string $message = '' ]) : mixed
Asserts that the generated JSON encoded object and the content of the given file are not equal.
assertJsonStringNotEqualsJsonFile(string $expectedFile, string $actualJson[, string $message = '' ]) : mixed
Asserts that two given JSON encoded objects or arrays are not equal.
assertJsonStringNotEqualsJsonString(string $expectedJson, string $actualJson[, string $message = '' ]) : mixed
Asserts that a value is smaller than another value.
assertLessThan(mixed $expected, mixed $actual[, string $message = '' ]) : mixed
Asserts that a value is smaller than or equal to another value.
assertLessThanOrEqual(mixed $expected, mixed $actual[, string $message = '' ]) : mixed
Asserts that a haystack does not contain a needle.
assertNotContains(mixed $needle, mixed $haystack[, string $message = '' ][, bool $ignoreCase = false ][, bool $checkForObjectIdentity = true ][, bool $checkForNonObjectIdentity = false ]) : mixed
Asserts that a haystack does not contain only values of a given type.
assertNotContainsOnly(string $type, mixed $haystack[, bool $isNativeType = null ][, string $message = '' ]) : mixed
Asserts the number of elements of an array, Countable or Traversable.
assertNotCount(int $expectedCount, mixed $haystack[, string $message = '' ]) : mixed
Asserts that a variable is not empty.
assertNotEmpty(mixed $actual[, string $message = '' ]) : mixed
Asserts that two variables are not equal.
assertNotEquals(mixed $expected, mixed $actual[, string $message = '' ][, float $delta = 0.0 ][, int $maxDepth = 10 ][, bool $canonicalize = false ][, bool $ignoreCase = false ]) : mixed
Asserts that a variable is not of a given type.
assertNotInstanceOf(string $expected, mixed $actual[, string $message = '' ]) : mixed
Asserts that a variable is not of a given type.
assertNotInternalType(string $expected, mixed $actual[, string $message = '' ]) : mixed
Asserts that a condition is not false.
assertNotFalse(bool $condition[, string $message = '' ]) : mixed
Asserts that a variable is not null.
assertNotNull(mixed $actual[, string $message = '' ]) : mixed
Asserts that a string does not match a given regular expression.
assertNotRegExp(string $pattern, string $string[, string $message = '' ]) : mixed
Asserts that two variables do not have the same type and value.
assertNotSame(mixed $expected, mixed $actual[, string $message = '' ]) : mixed
Used on objects, it asserts that two variables do not reference the same object.
Assert that the size of two arrays (or `Countable` or `Traversable` objects) is not the same.
assertNotSameSize(array<string|int, mixed>|Countable|Traversable $expected, array<string|int, mixed>|Countable|Traversable $actual[, string $message = '' ]) : mixed
This assertion is the exact opposite of assertTag().
assertNotTag(array<string|int, mixed> $matcher, string $actual[, string $message = '' ][, bool $isHtml = true ]) : mixed
Rather than asserting that $matcher results in a match, it asserts that $matcher does not match.
Asserts that a variable is null.
assertNull(mixed $actual[, string $message = '' ]) : mixed
Asserts that an object has a specified attribute.
assertObjectHasAttribute(string $attributeName, object $object[, string $message = '' ]) : mixed
Asserts that an object does not have a specified attribute.
assertObjectNotHasAttribute(string $attributeName, object $object[, string $message = '' ]) : mixed
Asserts that a string matches a given regular expression.
assertRegExp(string $pattern, string $string[, string $message = '' ]) : mixed
Asserts that two variables have the same type and value.
assertSame(mixed $expected, mixed $actual[, string $message = '' ]) : mixed
Used on objects, it asserts that two variables reference the same object.
Assert that the size of two arrays (or `Countable` or `Traversable` objects) is the same.
assertSameSize(array<string|int, mixed>|Countable|Traversable $expected, array<string|int, mixed>|Countable|Traversable $actual[, string $message = '' ]) : mixed
Assert the presence, absence, or count of elements in a document matching the CSS $selector, regardless of the contents of those elements.
assertSelectCount(array<string|int, mixed> $selector, int $count, mixed $actual[, string $message = '' ][, bool $isHtml = true ]) : mixed
The first argument, $selector, is the CSS selector used to match the elements in the $actual document.
The second argument, $count, can be either boolean or numeric. When boolean, it asserts for presence of elements matching the selector (true) or absence of elements (false). When numeric, it asserts the count of elements.
assertSelectCount("#binder", true, $xml); // any? assertSelectCount(".binder", 3, $xml); // exactly 3?
assertSelectEquals("#binder .name", "Chuck", true, $xml); // any? assertSelectEquals("#binder .name", "Chuck", false, $xml); // none?
assertSelectEquals(array<string|int, mixed> $selector, string $content, int $count, mixed $actual[, string $message = '' ][, bool $isHtml = true ]) : mixed
assertSelectRegExp("#binder .name", "/Mike|Derek/", true, $xml); // any? assertSelectRegExp("#binder .name", "/Mike|Derek/", 3, $xml);// 3?
assertSelectRegExp(array<string|int, mixed> $selector, string $pattern, int $count, mixed $actual[, string $message = '' ][, bool $isHtml = true ]) : mixed
Asserts that a string ends not with a given prefix.
assertStringEndsNotWith(string $suffix, string $string[, string $message = '' ]) : mixed
Asserts that a string ends with a given prefix.
assertStringEndsWith(string $suffix, string $string[, string $message = '' ]) : mixed
Asserts that the contents of a string is equal to the contents of a file.
assertStringEqualsFile(string $expectedFile, string $actualString[, string $message = '' ][, bool $canonicalize = false ][, bool $ignoreCase = false ]) : mixed
Asserts that a string matches a given format string.
assertStringMatchesFormat(string $format, string $string[, string $message = '' ]) : mixed
Asserts that a string matches a given format file.
assertStringMatchesFormatFile(string $formatFile, string $string[, string $message = '' ]) : mixed
Asserts that the contents of a string is not equal to the contents of a file.
assertStringNotEqualsFile(string $expectedFile, string $actualString[, string $message = '' ][, bool $canonicalize = false ][, bool $ignoreCase = false ]) : mixed
Asserts that a string does not match a given format string.
assertStringNotMatchesFormat(string $format, string $string[, string $message = '' ]) : mixed
Asserts that a string does not match a given format string.
assertStringNotMatchesFormatFile(string $formatFile, string $string[, string $message = '' ]) : mixed
Asserts that a string starts not with a given prefix.
assertStringStartsNotWith(string $prefix, string $string[, string $message = '' ]) : mixed
Asserts that a string starts with a given prefix.
assertStringStartsWith(string $prefix, string $string[, string $message = '' ]) : mixed
Evaluate an HTML or XML string and assert its structure and/or contents.
assertTag(array<string|int, mixed> $matcher, string $actual[, string $message = '' ][, bool $isHtml = true ]) : mixed
The first argument ($matcher) is an associative array that specifies the match criteria for the assertion:
id
: the node with the given id attribute must match the
corresponding value.tag
: the node type must match the corresponding value.attributes
: a hash. The node's attributes must match the
corresponding values in the hash.content
: The text content must match the given value.parent
: a hash. The node's parent must match the
corresponding hash.child
: a hash. At least one of the node's immediate children
must meet the criteria described by the hash.ancestor
: a hash. At least one of the node's ancestors must
meet the criteria described by the hash.descendant
: a hash. At least one of the node's descendants must
meet the criteria described by the hash.children
: a hash, for counting children of a node.
Accepts the keys:count
: a number which must equal the number of children
that matchless_than
: the number of matching children must be greater
than this numbergreater_than
: the number of matching children must be less than
this numberonly
: another hash consisting of the keys to use to match
on the children, and only matching children will be
counted
// Matcher that asserts that there is an element with an id="my_id".
$matcher = array('id' => 'my_id');
// Matcher that asserts that there is a "span" tag.
$matcher = array('tag' => 'span');
// Matcher that asserts that there is a "span" tag with the content
// "Hello World".
$matcher = array('tag' => 'span', 'content' => 'Hello World');
// Matcher that asserts that there is a "span" tag with content matching
// the regular expression pattern.
$matcher = array('tag' => 'span', 'content' => 'regexp:/Try P(HP|ython)/');
// Matcher that asserts that there is a "span" with an "list" class
// attribute.
$matcher = array(
'tag'=> 'span',
'attributes' => array('class' => 'list')
);
// Matcher that asserts that there is a "span" inside of a "div".
$matcher = array(
'tag'=> 'span',
'parent' => array('tag' => 'div')
);
// Matcher that asserts that there is a "span" somewhere inside a
// "table".
$matcher = array(
'tag' => 'span',
'ancestor' => array('tag' => 'table')
);
// Matcher that asserts that there is a "span" with at least one "em"
// child.
$matcher = array(
'tag' => 'span',
'child' => array('tag' => 'em')
);
// Matcher that asserts that there is a "span" containing a (possibly
// nested) "strong" tag.
$matcher = array(
'tag'=> 'span',
'descendant' => array('tag' => 'strong')
);
// Matcher that asserts that there is a "span" containing 5-10 "em" tags
// as immediate children.
$matcher = array(
'tag' => 'span',
'children' => array(
'less_than'=> 11,
'greater_than' => 4,
'only' => array('tag' => 'em')
)
);
// Matcher that asserts that there is a "div", with an "ul" ancestor and
// a "li" parent (with class="enum"), and containing a "span" descendant
// that contains an element with id="my_test" and the text "Hello World".
$matcher = array(
'tag'=> 'div',
'ancestor' => array('tag' => 'ul'),
'parent' => array(
'tag'=> 'li',
'attributes' => array('class' => 'enum')
),
'descendant' => array(
'tag' => 'span',
'child' => array(
'id' => 'my_test',
'content' => 'Hello World'
)
)
);
// Use assertTag() to apply a $matcher to a piece of $html.
$this->assertTag($matcher, $html);
// Use assertTag() to apply a $matcher to a piece of $xml.
$this->assertTag($matcher, $xml, '', false);
The second argument ($actual) is a string containing either HTML or XML text to be tested.
The third argument ($message) is an optional message that will be used if the assertion fails.
The fourth argument ($html) is an optional flag specifying whether to load the $actual string into a DOMDocument using the HTML or XML load strategy. It is true by default, which assumes the HTML load strategy. In many cases, this will be acceptable for XML as well.
Evaluates a PHPUnit_Framework_Constraint matcher object.
assertThat(mixed $value, PHPUnit_Framework_Constraint $constraint[, string $message = '' ]) : mixed
Asserts that a condition is true.
assertTrue(bool $condition[, string $message = '' ]) : mixed
Asserts that two XML files are equal.
assertXmlFileEqualsXmlFile(string $expectedFile, string $actualFile[, string $message = '' ]) : mixed
Asserts that two XML files are not equal.
assertXmlFileNotEqualsXmlFile(string $expectedFile, string $actualFile[, string $message = '' ]) : mixed
Asserts that two XML documents are equal.
assertXmlStringEqualsXmlFile(string $expectedFile, string $actualXml[, string $message = '' ]) : mixed
Asserts that two XML documents are equal.
assertXmlStringEqualsXmlString(string $expectedXml, string $actualXml[, string $message = '' ]) : mixed
Asserts that two XML documents are not equal.
assertXmlStringNotEqualsXmlFile(string $expectedFile, string $actualXml[, string $message = '' ]) : mixed
Asserts that two XML documents are not equal.
assertXmlStringNotEqualsXmlString(string $expectedXml, string $actualXml[, string $message = '' ]) : mixed
Returns a matcher that matches when the method is executed at the given $index.
at(int $index) : PHPUnit_Framework_MockObject_Matcher_InvokedAtIndex
Returns a matcher that matches when the method is executed at least once.
atLeastOnce() : PHPUnit_Framework_MockObject_Matcher_InvokedAtLeastOnce
Returns a PHPUnit_Framework_Constraint_Attribute matcher object.
attribute(PHPUnit_Framework_Constraint $constraint, string $attributeName) : PHPUnit_Framework_Constraint_Attribute
Returns a PHPUnit_Framework_Constraint_IsEqual matcher object that is wrapped in a PHPUnit_Framework_Constraint_Attribute matcher object.
attributeEqualTo(string $attributeName, mixed $value[, float $delta = 0.0 ][, int $maxDepth = 10 ][, bool $canonicalize = false ][, bool $ignoreCase = false ]) : PHPUnit_Framework_Constraint_Attribute
Returns a PHPUnit_Framework_Constraint_Callback matcher object.
callback(callable $callback) : PHPUnit_Framework_Constraint_Callback
Returns a PHPUnit_Framework_Constraint_ClassHasAttribute matcher object.
classHasAttribute(string $attributeName) : PHPUnit_Framework_Constraint_ClassHasAttribute
Returns a PHPUnit_Framework_Constraint_ClassHasStaticAttribute matcher object.
classHasStaticAttribute(string $attributeName) : PHPUnit_Framework_Constraint_ClassHasStaticAttribute
Returns a PHPUnit_Framework_Constraint_TraversableContains matcher object.
contains(mixed $value[, bool $checkForObjectIdentity = true ][, bool $checkForNonObjectIdentity = false ]) : PHPUnit_Framework_Constraint_TraversableContains
Returns a PHPUnit_Framework_Constraint_TraversableContainsOnly matcher object.
containsOnly(string $type) : PHPUnit_Framework_Constraint_TraversableContainsOnly
Returns a PHPUnit_Framework_Constraint_TraversableContainsOnly matcher object.
containsOnlyInstancesOf(string $classname) : PHPUnit_Framework_Constraint_TraversableContainsOnly
Returns a PHPUnit_Framework_Constraint_IsEqual matcher object.
equalTo(mixed $value[, float $delta = 0.0 ][, int $maxDepth = 10 ][, bool $canonicalize = false ][, bool $ignoreCase = false ]) : PHPUnit_Framework_Constraint_IsEqual
Returns a matcher that matches when the method is executed exactly $count times.
exactly(int $count) : PHPUnit_Framework_MockObject_Matcher_InvokedCount
Returns a PHPUnit_Framework_Constraint_FileExists matcher object.
fileExists() : PHPUnit_Framework_Constraint_FileExists
Returns a PHPUnit_Framework_Constraint_GreaterThan matcher object.
greaterThan(mixed $value) : PHPUnit_Framework_Constraint_GreaterThan
Returns a PHPUnit_Framework_Constraint_Or matcher object that wraps a PHPUnit_Framework_Constraint_IsEqual and a PHPUnit_Framework_Constraint_GreaterThan matcher object.
greaterThanOrEqual(mixed $value) : PHPUnit_Framework_Constraint_Or
Returns a PHPUnit_Framework_Constraint_IsIdentical matcher object.
identicalTo(mixed $value) : PHPUnit_Framework_Constraint_IsIdentical
Returns a PHPUnit_Framework_Constraint_IsEmpty matcher object.
isEmpty() : PHPUnit_Framework_Constraint_IsEmpty
Returns a PHPUnit_Framework_Constraint_IsFalse matcher object.
isFalse() : PHPUnit_Framework_Constraint_IsFalse
Returns a PHPUnit_Framework_Constraint_IsInstanceOf matcher object.
isInstanceOf(string $className) : PHPUnit_Framework_Constraint_IsInstanceOf
Returns a PHPUnit_Framework_Constraint_IsJson matcher object.
isJson() : PHPUnit_Framework_Constraint_IsJson
Returns a PHPUnit_Framework_Constraint_IsNull matcher object.
isNull() : PHPUnit_Framework_Constraint_IsNull
Returns a PHPUnit_Framework_Constraint_IsTrue matcher object.
isTrue() : PHPUnit_Framework_Constraint_IsTrue
Returns a PHPUnit_Framework_Constraint_IsType matcher object.
isType(string $type) : PHPUnit_Framework_Constraint_IsType
Returns a PHPUnit_Framework_Constraint_LessThan matcher object.
lessThan(mixed $value) : PHPUnit_Framework_Constraint_LessThan
Returns a PHPUnit_Framework_Constraint_Or matcher object that wraps a PHPUnit_Framework_Constraint_IsEqual and a PHPUnit_Framework_Constraint_LessThan matcher object.
lessThanOrEqual(mixed $value) : PHPUnit_Framework_Constraint_Or
Returns a PHPUnit_Framework_Constraint_And matcher object.
logicalAnd() : PHPUnit_Framework_Constraint_And
Returns a PHPUnit_Framework_Constraint_Not matcher object.
logicalNot(PHPUnit_Framework_Constraint $constraint) : PHPUnit_Framework_Constraint_Not
Returns a PHPUnit_Framework_Constraint_Or matcher object.
logicalOr() : PHPUnit_Framework_Constraint_Or
Returns a PHPUnit_Framework_Constraint_Xor matcher object.
logicalXor() : PHPUnit_Framework_Constraint_Xor
Returns a PHPUnit_Framework_Constraint_StringMatches matcher object.
matches(string $string) : PHPUnit_Framework_Constraint_StringMatches
Returns a PHPUnit_Framework_Constraint_PCREMatch matcher object.
matchesRegularExpression(string $pattern) : PHPUnit_Framework_Constraint_PCREMatch
Returns a matcher that matches when the method is never executed.
never() : PHPUnit_Framework_MockObject_Matcher_InvokedCount
Returns a PHPUnit_Framework_Constraint_ObjectHasAttribute matcher object.
objectHasAttribute(string $attributeName) : PHPUnit_Framework_Constraint_ObjectHasAttribute
onConsecutiveCalls() : PHPUnit_Framework_MockObject_Stub_ConsecutiveCalls
Returns a matcher that matches when the method is executed exactly once.
once() : PHPUnit_Framework_MockObject_Matcher_InvokedCount
returnArgument(int $argumentIndex) : PHPUnit_Framework_MockObject_Stub_ReturnArgument
returnCallback(mixed $callback) : PHPUnit_Framework_MockObject_Stub_ReturnCallback
Returns the current object.
returnSelf() : PHPUnit_Framework_MockObject_Stub_ReturnSelf
This method is useful when mocking a fluent interface.
returnValue(mixed $value) : PHPUnit_Framework_MockObject_Stub_Return
returnValueMap(array<string|int, mixed> $valueMap) : PHPUnit_Framework_MockObject_Stub_ReturnValueMap
Returns a PHPUnit_Framework_Constraint_StringContains matcher object.
stringContains(string $string[, bool $case = true ]) : PHPUnit_Framework_Constraint_StringContains
Returns a PHPUnit_Framework_Constraint_StringEndsWith matcher object.
stringEndsWith(mixed $suffix) : PHPUnit_Framework_Constraint_StringEndsWith
Returns a PHPUnit_Framework_Constraint_StringStartsWith matcher object.
stringStartsWith(mixed $prefix) : PHPUnit_Framework_Constraint_StringStartsWith
throwException(Exception $exception) : PHPUnit_Framework_MockObject_Stub_Exception
trait_exists(mixed $traitname[, mixed $autoload = true ]) : mixed
globalFunction() : mixed
trait_exists(mixed $traitname[, mixed $autoload = true ]) : mixed
functionCallback() : mixed
Get all HTTP header key/values as an associative array for the current request.
getallheaders() : mixed
Build from a package list.
buildFromPackage(object &$phar) : void
The Phar class.
Add from a node.
buildFromNode(object &$phar, object $node[, string $prefix = '' ]) : void
The Phar class.
The node to add.
The prefix of the structure.
Triggers a silenced deprecation notice.
trigger_deprecation(string $package, string $version, string $message, mixed ...$args) : void
The name of the Composer package that is triggering the deprecation
The version of the package that introduced the deprecation
The message of the deprecation
Values to insert in the message using printf() formatting
ctype_alnum(mixed $text) : mixed
ctype_alpha(mixed $text) : mixed
ctype_cntrl(mixed $text) : mixed
ctype_digit(mixed $text) : mixed
ctype_graph(mixed $text) : mixed
ctype_lower(mixed $text) : mixed
ctype_print(mixed $text) : mixed
ctype_punct(mixed $text) : mixed
ctype_space(mixed $text) : mixed
ctype_upper(mixed $text) : mixed
ctype_xdigit(mixed $text) : mixed
ctype_alnum(mixed $text) : bool
ctype_alpha(mixed $text) : bool
ctype_cntrl(mixed $text) : bool
ctype_digit(mixed $text) : bool
ctype_graph(mixed $text) : bool
ctype_lower(mixed $text) : bool
ctype_print(mixed $text) : bool
ctype_punct(mixed $text) : bool
ctype_space(mixed $text) : bool
ctype_upper(mixed $text) : bool
ctype_xdigit(mixed $text) : bool
grapheme_extract(mixed $haystack, mixed $size, mixed $type, mixed $start, mixed &$next) : mixed
grapheme_stripos(mixed $haystack, mixed $needle, mixed $offset) : mixed
grapheme_stristr(mixed $haystack, mixed $needle[, mixed $beforeNeedle = false ]) : mixed
grapheme_strlen(mixed $input) : mixed
grapheme_strpos(mixed $haystack, mixed $needle, mixed $offset) : mixed
grapheme_strripos(mixed $haystack, mixed $needle, mixed $offset) : mixed
grapheme_strrpos(mixed $haystack, mixed $needle, mixed $offset) : mixed
grapheme_strstr(mixed $haystack, mixed $needle[, mixed $beforeNeedle = false ]) : mixed
grapheme_substr(mixed $string, mixed $offset[, mixed $length = null ]) : mixed
grapheme_extract(string|null $haystack, int|null $size[, int|null $type = GRAPHEME_EXTR_COUNT ], int|null $offset[, mixed &$next = null ]) : string|false
grapheme_stripos(string|null $haystack, string|null $needle, int|null $offset) : int|false
grapheme_stristr(string|null $haystack, string|null $needle[, bool|null $beforeNeedle = false ]) : string|false
grapheme_strlen(string|null $string) : int|false|null
grapheme_strpos(string|null $haystack, string|null $needle, int|null $offset) : int|false
grapheme_strripos(string|null $haystack, string|null $needle, int|null $offset) : int|false
grapheme_strrpos(string|null $haystack, string|null $needle, int|null $offset) : int|false
grapheme_strstr(string|null $haystack, string|null $needle[, bool|null $beforeNeedle = false ]) : string|false
grapheme_substr(string|null $string, int|null $offset[, int|null $length = null ]) : string|false
idn_to_ascii(mixed $domain, mixed $flags[, mixed $variant = INTL_IDNA_VARIANT_UTS46 ][, mixed &$idna_info = null ]) : mixed
idn_to_utf8(mixed $domain, mixed $flags[, mixed $variant = INTL_IDNA_VARIANT_UTS46 ][, mixed &$idna_info = null ]) : mixed
idn_to_ascii(string|null $domain, int|null $flags[, int|null $variant = INTL_IDNA_VARIANT_UTS46 ][, mixed &$idna_info = null ]) : string|false
idn_to_utf8(string|null $domain, int|null $flags[, int|null $variant = INTL_IDNA_VARIANT_UTS46 ][, mixed &$idna_info = null ]) : string|false
normalizer_is_normalized(mixed $string[, mixed $form = pNormalizer::FORM_C ]) : mixed
normalizer_normalize(mixed $string[, mixed $form = pNormalizer::FORM_C ]) : mixed
normalizer_is_normalized(string|null $string[, int|null $form = pNormalizer::FORM_C ]) : bool
normalizer_normalize(string|null $string[, int|null $form = pNormalizer::FORM_C ]) : string|false
mb_convert_encoding(mixed $string, mixed $to_encoding[, mixed $from_encoding = null ]) : mixed
mb_decode_mimeheader(mixed $string) : mixed
mb_encode_mimeheader(mixed $string[, mixed $charset = null ][, mixed $transfer_encoding = null ][, mixed $newline = "
" ], mixed $indent) : mixed
mb_decode_numericentity(mixed $string, mixed $map[, mixed $encoding = null ]) : mixed
mb_encode_numericentity(mixed $string, mixed $map[, mixed $encoding = null ][, mixed $hex = false ]) : mixed
mb_convert_case(mixed $string, mixed $mode[, mixed $encoding = null ]) : mixed
mb_internal_encoding([mixed $encoding = null ]) : mixed
mb_language([mixed $language = null ]) : mixed
mb_list_encodings() : mixed
mb_encoding_aliases(mixed $encoding) : mixed
mb_check_encoding([mixed $value = null ][, mixed $encoding = null ]) : mixed
mb_detect_encoding(mixed $string[, mixed $encodings = null ][, mixed $strict = false ]) : mixed
mb_detect_order([mixed $encoding = null ]) : mixed
mb_parse_str(mixed $string[, mixed &$result = [] ]) : mixed
mb_strlen(mixed $string[, mixed $encoding = null ]) : mixed
mb_strpos(mixed $haystack, mixed $needle, mixed $offset[, mixed $encoding = null ]) : mixed
mb_strtolower(mixed $string[, mixed $encoding = null ]) : mixed
mb_strtoupper(mixed $string[, mixed $encoding = null ]) : mixed
mb_substitute_character([mixed $substitute_character = null ]) : mixed
mb_substr(mixed $string, mixed $start[, mixed $length = 2147483647 ][, mixed $encoding = null ]) : mixed
mb_stripos(mixed $haystack, mixed $needle, mixed $offset[, mixed $encoding = null ]) : mixed
mb_stristr(mixed $haystack, mixed $needle[, mixed $before_needle = false ][, mixed $encoding = null ]) : mixed
mb_strrchr(mixed $haystack, mixed $needle[, mixed $before_needle = false ][, mixed $encoding = null ]) : mixed
mb_strrichr(mixed $haystack, mixed $needle[, mixed $before_needle = false ][, mixed $encoding = null ]) : mixed
mb_strripos(mixed $haystack, mixed $needle, mixed $offset[, mixed $encoding = null ]) : mixed
mb_strrpos(mixed $haystack, mixed $needle, mixed $offset[, mixed $encoding = null ]) : mixed
mb_strstr(mixed $haystack, mixed $needle[, mixed $before_needle = false ][, mixed $encoding = null ]) : mixed
mb_get_info([mixed $type = 'all' ]) : mixed
mb_http_output([mixed $encoding = null ]) : mixed
mb_strwidth(mixed $string[, mixed $encoding = null ]) : mixed
mb_substr_count(mixed $haystack, mixed $needle[, mixed $encoding = null ]) : mixed
mb_output_handler(mixed $string, mixed $status) : mixed
mb_http_input([mixed $type = null ]) : mixed
mb_convert_variables(mixed $to_encoding, mixed $from_encoding, mixed ...&$vars) : mixed
mb_ord(mixed $string[, mixed $encoding = null ]) : mixed
mb_chr(mixed $codepoint[, mixed $encoding = null ]) : mixed
mb_scrub(mixed $string[, mixed $encoding = null ]) : mixed
mb_str_split(mixed $string[, mixed $length = 1 ][, mixed $encoding = null ]) : mixed
mb_convert_encoding(array<string|int, mixed>|string|null $string, string|null $to_encoding[, array<string|int, mixed>|string|null $from_encoding = null ]) : array<string|int, mixed>|string|false
mb_decode_mimeheader(string|null $string) : string
mb_encode_mimeheader(string|null $string[, string|null $charset = null ][, string|null $transfer_encoding = null ][, string|null $newline = "
" ], int|null $indent) : string
mb_decode_numericentity(string|null $string, array<string|int, mixed> $map[, string|null $encoding = null ]) : string
mb_encode_numericentity(string|null $string, array<string|int, mixed> $map[, string|null $encoding = null ][, bool|null $hex = false ]) : string
mb_convert_case(string|null $string, int|null $mode[, string|null $encoding = null ]) : string
mb_internal_encoding([string|null $encoding = null ]) : string|bool
mb_language([string|null $language = null ]) : string|bool
mb_list_encodings() : array<string|int, mixed>
mb_encoding_aliases(string|null $encoding) : array<string|int, mixed>
mb_check_encoding([array<string|int, mixed>|string|null $value = null ][, string|null $encoding = null ]) : bool
mb_detect_encoding(string|null $string[, array<string|int, mixed>|string|null $encodings = null ][, bool|null $strict = false ]) : string|false
mb_detect_order([array<string|int, mixed>|string|null $encoding = null ]) : array<string|int, mixed>|bool
mb_parse_str(string|null $string[, mixed &$result = [] ]) : bool
mb_strlen(string|null $string[, string|null $encoding = null ]) : int
mb_strpos(string|null $haystack, string|null $needle, int|null $offset[, string|null $encoding = null ]) : int|false
mb_strtolower(string|null $string[, string|null $encoding = null ]) : string
mb_strtoupper(string|null $string[, string|null $encoding = null ]) : string
mb_substitute_character([string|int|null $substitute_character = null ]) : string|int|bool
mb_substr(string|null $string, int|null $start[, int|null $length = null ][, string|null $encoding = null ]) : string
mb_stripos(string|null $haystack, string|null $needle, int|null $offset[, string|null $encoding = null ]) : int|false
mb_stristr(string|null $haystack, string|null $needle[, bool|null $before_needle = false ][, string|null $encoding = null ]) : string|false
mb_strrchr(string|null $haystack, string|null $needle[, bool|null $before_needle = false ][, string|null $encoding = null ]) : string|false
mb_strrichr(string|null $haystack, string|null $needle[, bool|null $before_needle = false ][, string|null $encoding = null ]) : string|false
mb_strripos(string|null $haystack, string|null $needle, int|null $offset[, string|null $encoding = null ]) : int|false
mb_strrpos(string|null $haystack, string|null $needle, int|null $offset[, string|null $encoding = null ]) : int|false
mb_strstr(string|null $haystack, string|null $needle[, bool|null $before_needle = false ][, string|null $encoding = null ]) : string|false
mb_get_info([string|null $type = 'all' ]) : array<string|int, mixed>|string|int|false
mb_http_output([string|null $encoding = null ]) : string|bool
mb_strwidth(string|null $string[, string|null $encoding = null ]) : int
mb_substr_count(string|null $haystack, string|null $needle[, string|null $encoding = null ]) : int
mb_output_handler(string|null $string, int|null $status) : string
mb_http_input([string|null $type = null ]) : array<string|int, mixed>|string|false
mb_convert_variables(string|null $to_encoding, array<string|int, mixed>|string|null $from_encoding, mixed &$var, mixed ...&$vars) : string|false
mb_ord(string|null $string[, string|null $encoding = null ]) : int|false
mb_chr(int|null $codepoint[, string|null $encoding = null ]) : string|false
mb_scrub(string|null $string[, string|null $encoding = null ]) : string
mb_str_split(string|null $string[, int|null $length = 1 ][, string|null $encoding = null ]) : array<string|int, mixed>
sapi_windows_vt100_support(mixed $stream[, mixed $enable = null ]) : mixed
stream_isatty(mixed $stream) : mixed
utf8_encode(mixed $string) : mixed
utf8_decode(mixed $string) : mixed
spl_object_id(mixed $object) : mixed
mb_ord(mixed $string[, mixed $encoding = null ]) : mixed
mb_chr(mixed $codepoint[, mixed $encoding = null ]) : mixed
mb_scrub(mixed $string[, mixed $encoding = null ]) : mixed
is_countable(mixed $value) : mixed
hrtime([mixed $as_number = false ]) : mixed
array_key_first(array<string|int, mixed> $array) : mixed
array_key_last(array<string|int, mixed> $array) : mixed
fdiv(float $num1, float $num2) : float
preg_last_error_msg() : string
str_contains(string $haystack, string $needle) : bool
str_starts_with(string $haystack, string $needle) : bool
str_ends_with(string $haystack, string $needle) : bool
get_debug_type(mixed $value) : string
get_resource_id(mixed $resource) : int