HumHub Documentation (unofficial)

VerifyMixedTrait

Table of Contents

Methods

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.
equalsCanonicalizing()  : mixed
Verifies that two variables are equal (canonicalizing).
equalsIgnoringCase()  : mixed
Verifies that two variables are equal (ignoring case).
equalsWithDelta()  : mixed
Verifies that two variables are equal (with delta).
false()  : mixed
Verifies that a condition is false.
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.
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.
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.
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.
notEmpty()  : mixed
Verifies that a variable is not empty.
notEqualsCanonicalizing()  : mixed
Verifies that two variables are not equal (canonicalizing).
notEqualsIgnoringCase()  : mixed
Verifies that two variables are not equal (ignoring case).
notEqualsWithDelta()  : mixed
Verifies that two variables are not equal (with delta).
notFalse()  : mixed
Verifies that a condition is not false.
notFloat()  : mixed
Verifies that a variable is not of type float.
notInt()  : mixed
Verifies that a variable is not of type int.
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.
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.
notScalar()  : mixed
Verifies that a variable is not of type scalar.
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.
resource()  : mixed
Verifies that a variable is of type resource.
same()  : mixed
Verifies that two variables have the same type and value.
scalar()  : mixed
Verifies that a variable is of type scalar.
string()  : mixed
Verifies that a variable is of type string.
that()  : mixed
Evaluates a PHPUnit\Framework\Constraint matcher object.
true()  : mixed
Verifies that a condition is true.

Methods

array()

Verifies that a variable is of type array.

public array() : mixed

callable()

Verifies that a variable is of type callable.

public callable() : mixed

equalsCanonicalizing()

Verifies that two variables are equal (canonicalizing).

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

equalsIgnoringCase()

Verifies that two variables are equal (ignoring case).

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

equalsWithDelta()

Verifies that two variables are equal (with delta).

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

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

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

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

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

notEmpty()

Verifies that a variable is not empty.

public notEmpty() : mixed

notEqualsCanonicalizing()

Verifies that two variables are not equal (canonicalizing).

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

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

notInt()

Verifies that a variable is not of type int.

public notInt() : mixed

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

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

notScalar()

Verifies that a variable is not of type scalar.

public notScalar() : mixed

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

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

scalar()

Verifies that a variable is of type scalar.

public scalar() : mixed

string()

Verifies that a variable is of type string.

public string() : mixed

that()

Evaluates a PHPUnit\Framework\Constraint matcher object.

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

        
On this page

Search results