HumHub Documentation (unofficial)

Verify
in package
uses VerifyArrayTrait, VerifyDirectoryTrait, VerifyFileTrait, VerifyMixedTrait, VerifyStringTrait, VerifyThrowableTrait, VerifyUnionTrait, VerifyXmlTrait

Table of Contents

Properties

$override  : mixed
$actual  : mixed
$isFileExpectation  : mixed
$message  : mixed

Methods

__construct()  : mixed
array()  : mixed
Verifies that a variable is of type array.
bool()  : mixed
Verifies that a variable is of type bool.
callable()  : mixed
Verifies that a variable is of type callable.
contains()  : mixed
Verifies that a haystack contains a needle.
containsEquals()  : mixed
containsOnly()  : mixed
Verifies that a haystack contains only values of a given type.
containsOnlyInstancesOf()  : mixed
Verifies that a haystack contains only instances of a given class name.
count()  : mixed
Verifies the number of elements of an array, Countable or Traversable.
directoryDoesNotExist()  : mixed
Verifies that a directory does not exist.
directoryExists()  : mixed
Verifies that a directory exists.
directoryIsNotReadable()  : mixed
Verifies that a directory exists and is not readable.
directoryIsNotWritable()  : mixed
Verifies that a directory exists and is not writable.
directoryIsReadable()  : mixed
Verifies that a directory exists and is readable.
directoryIsWritable()  : mixed
Verifies that a directory exists and is writable.
doesNotThrow()  : mixed
endsWith()  : mixed
Verifies that a string ends with a given suffix.
equals()  : mixed
equalsCanonicalizing()  : mixed
Verifies that two variables are equal (canonicalizing).
equalsFile()  : mixed
Verifies that the contents of a string is equal to the contents of a file.
equalsIgnoringCase()  : mixed
Verifies that two variables are equal (ignoring case).
equalsJsonFile()  : mixed
equalsJsonString()  : mixed
Verifies that two given JSON encoded objects or arrays are equal.
equalsWithDelta()  : mixed
Verifies that two variables are equal (with delta).
equalsXmlFile()  : mixed
equalsXmlString()  : mixed
Verifies that two XML documents are equal.
exists()  : mixed
false()  : mixed
Verifies that a condition is false.
fileEqualsCanonicalizing()  : mixed
Verifies that the contents of one file is equal to the contents of another file (canonicalizing).
fileEqualsIgnoringCase()  : mixed
Verifies that the contents of one file is equal to the contents of another file (ignoring case).
fileIsNotReadable()  : mixed
Verifies that a file exists and is not readable.
fileIsNotWritable()  : mixed
Verifies that a file exists and is not writable.
fileIsReadable()  : mixed
Verifies that a file exists and is readable.
fileIsWritable()  : mixed
Verifies that a file exists and is writable.
fileNotEqualsCanonicalizing()  : mixed
Verifies that the contents of one file is not equal to the contents of another file (canonicalizing).
fileNotEqualsIgnoringCase()  : mixed
Verifies that the contents of one file is not equal to the contents of another file (ignoring case).
finite()  : mixed
Verifies that a variable is finite.
float()  : mixed
Verifies that a variable is of type float.
greaterOrEquals()  : mixed
Verifies that a value is greater than or equal to another value.
greaterThan()  : mixed
Verifies that a value is greater than another value.
hasAttribute()  : mixed
Verifies that a class has a specified attribute.
hasKey()  : mixed
Verifies that an array has a specified key.
hasNotKey()  : mixed
Verifies that an array does not have a specified key.
hasStaticAttribute()  : mixed
Verifies that a class has a specified static attribute.
infinite()  : mixed
Verifies that a variable is infinite.
int()  : mixed
Verifies that a variable is of type int.
isClosedResource()  : mixed
Verifies that a variable is of type resource and is closed.
isEmpty()  : mixed
Verifies that a variable is empty.
isInstanceOf()  : mixed
Verifies that a variable is of a given type.
isIterable()  : mixed
Verifies that a variable is of type iterable.
isNotClosedResource()  : mixed
Verifies that a variable is not of type resource.
isNotInstanceOf()  : mixed
Verifies that a variable is not of a given type.
isNotIterable()  : mixed
Verifies that a variable is not of type iterable.
isNotReadable()  : mixed
Verifies that a file/dir exists and is not readable.
isNotWritable()  : mixed
Verifies that a file/dir exists and is not writable.
isReadable()  : mixed
Verifies that a file/dir is readable.
isWritable()  : mixed
Asserts that a file/dir exists and is writable.
json()  : mixed
Verifies that a string is a valid JSON string.
jsonFileNotEqualsJsonFile()  : mixed
Verifies that two JSON files are not equal.
jsonStringNotEqualsJsonFile()  : mixed
Verifies that the generated JSON encoded object and the content of the given file are not equal.
jsonStringNotEqualsJsonString()  : mixed
Verifies that two given JSON encoded objects or arrays are not equal.
lessOrEquals()  : mixed
Verifies that a value is smaller than or equal to another value.
lessThan()  : mixed
Verifies that a value is smaller than another value.
matchesFormat()  : mixed
Verifies that a string matches a given format string.
matchesFormatFile()  : mixed
Verifies that a string matches a given format file.
nan()  : mixed
Verifies that a variable is nan.
notArray()  : mixed
Verifies that a variable is not of type array.
notBool()  : mixed
Verifies that a variable is not of type bool.
notCallable()  : mixed
Verifies that a variable is not of type callable.
notContains()  : mixed
Verifies that a haystack does not contain a needle.
notContainsEquals()  : mixed
notContainsOnly()  : mixed
Verifies that a haystack does not contain only values of a given type.
notCount()  : mixed
Verifies the number of elements of an array, Countable or Traversable.
notEmpty()  : mixed
Verifies that a variable is not empty.
notEndsWith()  : mixed
Verifies that a string ends not with a given suffix.
notEquals()  : mixed
notEqualsCanonicalizing()  : mixed
Verifies that two variables are not equal (canonicalizing).
notEqualsFile()  : mixed
Verifies that the contents of a string is not equal to the contents of a file.
notEqualsIgnoringCase()  : mixed
Verifies that two variables are not equal (ignoring case).
notEqualsWithDelta()  : mixed
Verifies that two variables are not equal (with delta).
notExists()  : mixed
notFalse()  : mixed
Verifies that a condition is not false.
notFloat()  : mixed
Verifies that a variable is not of type float.
notHasAttribute()  : mixed
Verifies that a class does not have a specified attribute.
notHasStaticAttribute()  : mixed
Verifies that a class does not have a specified static attribute.
notInt()  : mixed
Verifies that a variable is not of type int.
notMatchesFormat()  : mixed
notMatchesFormatFile()  : mixed
Verifies that a string does not match a given format string.
notNull()  : mixed
Verifies that a variable is not null.
notNumeric()  : mixed
Verifies that a variable is not of type numeric.
notObject()  : mixed
Verifies that a variable is not of type object.
notRegExp()  : mixed
Verifies that a string does not match a given regular expression.
notResource()  : mixed
Verifies that a variable is not of type resource.
notSame()  : mixed
Verifies that two variables do not have the same type and value.
notSameSize()  : mixed
Verifies that the size of two arrays (or `Countable` or `Traversable` objects) is not the same.
notScalar()  : mixed
Verifies that a variable is not of type scalar.
notStartsWith()  : mixed
Verifies that a string starts not with a given prefix.
notString()  : mixed
Verifies that a variable is not of type string.
notTrue()  : mixed
Verifies that a condition is not true.
null()  : mixed
Verifies that a variable is null.
numeric()  : mixed
Verifies that a variable is of type numeric.
object()  : mixed
Verifies that a variable is of type object.
regExp()  : mixed
Verifies that a string matches a given regular expression.
resource()  : mixed
Verifies that a variable is of type resource.
same()  : mixed
Verifies that two variables have the same type and value.
sameSize()  : mixed
Verifies that the size of two arrays (or `Countable` or `Traversable` objects) is the same.
scalar()  : mixed
Verifies that a variable is of type scalar.
setIsFileExpectation()  : mixed
startsWith()  : mixed
Verifies that a string starts with a given prefix.
string()  : mixed
Verifies that a variable is of type string.
stringContainsString()  : mixed
stringContainsStringIgnoringCase()  : mixed
stringEqualsFileCanonicalizing()  : mixed
Verifies that the contents of a string is equal to the contents of a file (canonicalizing).
stringEqualsFileIgnoringCase()  : mixed
Verifies that the contents of a string is equal to the contents of a file (ignoring case).
stringNotContainsString()  : mixed
stringNotContainsStringIgnoringCase()  : mixed
stringNotEqualsFileCanonicalizing()  : mixed
Verifies that the contents of a string is not equal to the contents of a file (canonicalizing).
stringNotEqualsFileIgnoringCase()  : mixed
Verifies that the contents of a string is not equal to the contents of a file (ignoring case).
that()  : mixed
Evaluates a PHPUnit\Framework\Constraint matcher object.
throws()  : mixed
true()  : mixed
Verifies that a condition is true.
xmlFileNotEqualsXmlFile()  : mixed
Verifies that two XML files are not equal.
xmlStringNotEqualsXmlFile()  : mixed
Verifies that two XML documents are not equal.
xmlStringNotEqualsXmlString()  : mixed
Verifies that two XML documents are not equal.

Properties

$override

public static mixed $override = false

$actual

protected mixed $actual = null

$isFileExpectation

protected mixed $isFileExpectation = false

$message

protected mixed $message = ''

Methods

__construct()

public __construct(mixed $message) : mixed
Parameters
$message : mixed

array()

Verifies that a variable is of type array.

public array() : mixed

callable()

Verifies that a variable is of type callable.

public callable() : mixed

contains()

Verifies that a haystack contains a needle.

public contains(mixed $needle) : mixed
Parameters
$needle : mixed

containsEquals()

public containsEquals(mixed $needle) : mixed
Parameters
$needle : mixed

containsOnly()

Verifies that a haystack contains only values of a given type.

public containsOnly(string $type[, bool|null $isNativeType = null ]) : mixed
Parameters
$type : string
$isNativeType : bool|null = null

containsOnlyInstancesOf()

Verifies that a haystack contains only instances of a given class name.

public containsOnlyInstancesOf(string $className) : mixed
Parameters
$className : string

count()

Verifies the number of elements of an array, Countable or Traversable.

public count(int $expectedCount) : mixed
Parameters
$expectedCount : int

directoryDoesNotExist()

Verifies that a directory does not exist.

public directoryDoesNotExist() : mixed

directoryIsNotReadable()

Verifies that a directory exists and is not readable.

public directoryIsNotReadable() : mixed

directoryIsNotWritable()

Verifies that a directory exists and is not writable.

public directoryIsNotWritable() : mixed

directoryIsReadable()

Verifies that a directory exists and is readable.

public directoryIsReadable() : mixed

directoryIsWritable()

Verifies that a directory exists and is writable.

public directoryIsWritable() : mixed

doesNotThrow()

public doesNotThrow([mixed $throws = null ][, mixed $message = false ]) : mixed
Parameters
$throws : mixed = null
$message : mixed = false

endsWith()

Verifies that a string ends with a given suffix.

public endsWith(string $suffix) : mixed
Parameters
$suffix : string

equals()

public equals(mixed $expected[, mixed $delta = 0 ]) : mixed
Parameters
$expected : mixed
$delta : mixed = 0

equalsCanonicalizing()

Verifies that two variables are equal (canonicalizing).

public equalsCanonicalizing(mixed $expected) : mixed
Parameters
$expected : mixed

equalsFile()

Verifies that the contents of a string is equal to the contents of a file.

public equalsFile(string $expectedFile) : mixed
Parameters
$expectedFile : string

equalsIgnoringCase()

Verifies that two variables are equal (ignoring case).

public equalsIgnoringCase(mixed $expected) : mixed
Parameters
$expected : mixed

equalsJsonFile()

public equalsJsonFile(mixed $file) : mixed
Parameters
$file : mixed

equalsJsonString()

Verifies that two given JSON encoded objects or arrays are equal.

public equalsJsonString(mixed $string) : mixed
Parameters
$string : mixed

equalsWithDelta()

Verifies that two variables are equal (with delta).

public equalsWithDelta(mixed $expected, float $delta) : mixed
Parameters
$expected : mixed
$delta : float

equalsXmlFile()

public equalsXmlFile(mixed $file) : mixed
Parameters
$file : mixed

equalsXmlString()

Verifies that two XML documents are equal.

public equalsXmlString(DOMDocument|string $expectedXml) : mixed
Parameters
$expectedXml : DOMDocument|string

fileEqualsCanonicalizing()

Verifies that the contents of one file is equal to the contents of another file (canonicalizing).

public fileEqualsCanonicalizing(mixed $expected) : mixed
Parameters
$expected : mixed

fileEqualsIgnoringCase()

Verifies that the contents of one file is equal to the contents of another file (ignoring case).

public fileEqualsIgnoringCase(mixed $expected) : mixed
Parameters
$expected : mixed

fileIsNotReadable()

Verifies that a file exists and is not readable.

public fileIsNotReadable() : mixed

fileIsNotWritable()

Verifies that a file exists and is not writable.

public fileIsNotWritable() : mixed

fileIsReadable()

Verifies that a file exists and is readable.

public fileIsReadable() : mixed

fileIsWritable()

Verifies that a file exists and is writable.

public fileIsWritable() : mixed

fileNotEqualsCanonicalizing()

Verifies that the contents of one file is not equal to the contents of another file (canonicalizing).

public fileNotEqualsCanonicalizing(mixed $expected) : mixed
Parameters
$expected : mixed

fileNotEqualsIgnoringCase()

Verifies that the contents of one file is not equal to the contents of another file (ignoring case).

public fileNotEqualsIgnoringCase(mixed $expected) : mixed
Parameters
$expected : mixed

float()

Verifies that a variable is of type float.

public float() : mixed

greaterOrEquals()

Verifies that a value is greater than or equal to another value.

public greaterOrEquals(mixed $expected) : mixed
Parameters
$expected : mixed

greaterThan()

Verifies that a value is greater than another value.

public greaterThan(mixed $expected) : mixed
Parameters
$expected : mixed

hasAttribute()

Verifies that a class has a specified attribute.

public hasAttribute(string $attributeName) : mixed
Parameters
$attributeName : string

hasKey()

Verifies that an array has a specified key.

public hasKey(int|string $key) : mixed
Parameters
$key : int|string

hasNotKey()

Verifies that an array does not have a specified key.

public hasNotKey(int|string $key) : mixed
Parameters
$key : int|string

hasStaticAttribute()

Verifies that a class has a specified static attribute.

public hasStaticAttribute(string $attributeName) : mixed
Parameters
$attributeName : string

infinite()

Verifies that a variable is infinite.

public infinite() : mixed

isClosedResource()

Verifies that a variable is of type resource and is closed.

public isClosedResource() : mixed

isInstanceOf()

Verifies that a variable is of a given type.

public isInstanceOf(string $expected) : mixed
Parameters
$expected : string

isIterable()

Verifies that a variable is of type iterable.

public isIterable() : mixed

isNotClosedResource()

Verifies that a variable is not of type resource.

public isNotClosedResource() : mixed

isNotInstanceOf()

Verifies that a variable is not of a given type.

public isNotInstanceOf(string $expected) : mixed
Parameters
$expected : string

isNotIterable()

Verifies that a variable is not of type iterable.

public isNotIterable() : mixed

isNotReadable()

Verifies that a file/dir exists and is not readable.

public isNotReadable() : mixed

isNotWritable()

Verifies that a file/dir exists and is not writable.

public isNotWritable() : mixed

isReadable()

Verifies that a file/dir is readable.

public isReadable() : mixed

isWritable()

Asserts that a file/dir exists and is writable.

public isWritable() : mixed

jsonFileNotEqualsJsonFile()

Verifies that two JSON files are not equal.

public jsonFileNotEqualsJsonFile(string $expectedFile) : mixed
Parameters
$expectedFile : string

jsonStringNotEqualsJsonFile()

Verifies that the generated JSON encoded object and the content of the given file are not equal.

public jsonStringNotEqualsJsonFile(string $expectedFile) : mixed
Parameters
$expectedFile : string

jsonStringNotEqualsJsonString()

Verifies that two given JSON encoded objects or arrays are not equal.

public jsonStringNotEqualsJsonString(string $expectedJson) : mixed
Parameters
$expectedJson : string

lessOrEquals()

Verifies that a value is smaller than or equal to another value.

public lessOrEquals(mixed $expected) : mixed
Parameters
$expected : mixed

lessThan()

Verifies that a value is smaller than another value.

public lessThan(mixed $expected) : mixed
Parameters
$expected : mixed

matchesFormat()

Verifies that a string matches a given format string.

public matchesFormat(string $format) : mixed
Parameters
$format : string

matchesFormatFile()

Verifies that a string matches a given format file.

public matchesFormatFile(string $formatFile) : mixed
Parameters
$formatFile : string

notArray()

Verifies that a variable is not of type array.

public notArray() : mixed

notBool()

Verifies that a variable is not of type bool.

public notBool() : mixed

notCallable()

Verifies that a variable is not of type callable.

public notCallable() : mixed

notContains()

Verifies that a haystack does not contain a needle.

public notContains(mixed $needle) : mixed
Parameters
$needle : mixed

notContainsEquals()

public notContainsEquals(mixed $needle) : mixed
Parameters
$needle : mixed

notContainsOnly()

Verifies that a haystack does not contain only values of a given type.

public notContainsOnly(string $type[, bool|null $isNativeType = null ]) : mixed
Parameters
$type : string
$isNativeType : bool|null = null

notCount()

Verifies the number of elements of an array, Countable or Traversable.

public notCount(int $expectedCount) : mixed
Parameters
$expectedCount : int

notEmpty()

Verifies that a variable is not empty.

public notEmpty() : mixed

notEndsWith()

Verifies that a string ends not with a given suffix.

public notEndsWith(string $suffix) : mixed
Parameters
$suffix : string

notEquals()

public notEquals(mixed $expected[, mixed $delta = 0 ]) : mixed
Parameters
$expected : mixed
$delta : mixed = 0

notEqualsCanonicalizing()

Verifies that two variables are not equal (canonicalizing).

public notEqualsCanonicalizing(mixed $expected) : mixed
Parameters
$expected : mixed

notEqualsFile()

Verifies that the contents of a string is not equal to the contents of a file.

public notEqualsFile(string $expectedFile) : mixed
Parameters
$expectedFile : string

notEqualsIgnoringCase()

Verifies that two variables are not equal (ignoring case).

public notEqualsIgnoringCase(mixed $expected) : mixed
Parameters
$expected : mixed

notEqualsWithDelta()

Verifies that two variables are not equal (with delta).

public notEqualsWithDelta(mixed $expected, float $delta) : mixed
Parameters
$expected : mixed
$delta : float

notFalse()

Verifies that a condition is not false.

public notFalse(mixed $condition) : mixed
Parameters
$condition : mixed

notFloat()

Verifies that a variable is not of type float.

public notFloat() : mixed

notHasAttribute()

Verifies that a class does not have a specified attribute.

public notHasAttribute(string $attributeName) : mixed
Parameters
$attributeName : string

notHasStaticAttribute()

Verifies that a class does not have a specified static attribute.

public notHasStaticAttribute(string $attributeName) : mixed
Parameters
$attributeName : string

notInt()

Verifies that a variable is not of type int.

public notInt() : mixed

notMatchesFormat()

public notMatchesFormat(mixed $format) : mixed
Parameters
$format : mixed

notMatchesFormatFile()

Verifies that a string does not match a given format string.

public notMatchesFormatFile(string $formatFile) : mixed
Parameters
$formatFile : string

notNull()

Verifies that a variable is not null.

public notNull() : mixed

notNumeric()

Verifies that a variable is not of type numeric.

public notNumeric() : mixed

notObject()

Verifies that a variable is not of type object.

public notObject() : mixed

notRegExp()

Verifies that a string does not match a given regular expression.

public notRegExp(string $pattern) : mixed
Parameters
$pattern : string

notResource()

Verifies that a variable is not of type resource.

public notResource() : mixed

notSame()

Verifies that two variables do not have the same type and value.

public notSame(mixed $expected) : mixed
Parameters
$expected : mixed

notSameSize()

Verifies that the size of two arrays (or `Countable` or `Traversable` objects) is not the same.

public notSameSize(Countable|iterable<string|int, mixed> $expected) : mixed
Parameters
$expected : Countable|iterable<string|int, mixed>

notScalar()

Verifies that a variable is not of type scalar.

public notScalar() : mixed

notStartsWith()

Verifies that a string starts not with a given prefix.

public notStartsWith(string $prefix) : mixed
Parameters
$prefix : string

notString()

Verifies that a variable is not of type string.

public notString() : mixed

notTrue()

Verifies that a condition is not true.

public notTrue(mixed $condition) : mixed
Parameters
$condition : mixed

numeric()

Verifies that a variable is of type numeric.

public numeric() : mixed

object()

Verifies that a variable is of type object.

public object() : mixed

regExp()

Verifies that a string matches a given regular expression.

public regExp(string $pattern) : mixed
Parameters
$pattern : string

resource()

Verifies that a variable is of type resource.

public resource() : mixed

same()

Verifies that two variables have the same type and value.

public same(mixed $expected) : mixed
Parameters
$expected : mixed

sameSize()

Verifies that the size of two arrays (or `Countable` or `Traversable` objects) is the same.

public sameSize(Countable|iterable<string|int, mixed> $expected) : mixed
Parameters
$expected : Countable|iterable<string|int, mixed>

scalar()

Verifies that a variable is of type scalar.

public scalar() : mixed

setIsFileExpectation()

public setIsFileExpectation(bool $isFileExpectation) : mixed
Parameters
$isFileExpectation : bool

startsWith()

Verifies that a string starts with a given prefix.

public startsWith(string $prefix) : mixed
Parameters
$prefix : string

string()

Verifies that a variable is of type string.

public string() : mixed

stringContainsString()

public stringContainsString(string $needle) : mixed
Parameters
$needle : string

stringContainsStringIgnoringCase()

public stringContainsStringIgnoringCase(mixed $needle) : mixed
Parameters
$needle : mixed

stringEqualsFileCanonicalizing()

Verifies that the contents of a string is equal to the contents of a file (canonicalizing).

public stringEqualsFileCanonicalizing(string $expectedFile) : mixed
Parameters
$expectedFile : string

stringEqualsFileIgnoringCase()

Verifies that the contents of a string is equal to the contents of a file (ignoring case).

public stringEqualsFileIgnoringCase(string $expectedFile) : mixed
Parameters
$expectedFile : string

stringNotContainsString()

public stringNotContainsString(string $needle) : mixed
Parameters
$needle : string

stringNotContainsStringIgnoringCase()

public stringNotContainsStringIgnoringCase(string $needle) : mixed
Parameters
$needle : string

stringNotEqualsFileCanonicalizing()

Verifies that the contents of a string is not equal to the contents of a file (canonicalizing).

public stringNotEqualsFileCanonicalizing(string $expectedFile) : mixed
Parameters
$expectedFile : string

stringNotEqualsFileIgnoringCase()

Verifies that the contents of a string is not equal to the contents of a file (ignoring case).

public stringNotEqualsFileIgnoringCase(string $expectedFile) : mixed
Parameters
$expectedFile : string

that()

Evaluates a PHPUnit\Framework\Constraint matcher object.

public that(mixed $value) : mixed
Parameters
$value : mixed

throws()

public throws([Exception|string|null $throws = null ][, string|false $message = false ]) : mixed
Parameters
$throws : Exception|string|null = null
$message : string|false = false
Tags
throws
Throwable

xmlFileNotEqualsXmlFile()

Verifies that two XML files are not equal.

public xmlFileNotEqualsXmlFile(string $expectedFile) : mixed
Parameters
$expectedFile : string

xmlStringNotEqualsXmlFile()

Verifies that two XML documents are not equal.

public xmlStringNotEqualsXmlFile(string $expectedFile) : mixed
Parameters
$expectedFile : string

xmlStringNotEqualsXmlString()

Verifies that two XML documents are not equal.

public xmlStringNotEqualsXmlString(DOMDocument|string $expectedXml) : mixed
Parameters
$expectedXml : DOMDocument|string

        
On this page

Search results