T::ARRAY

Source

ARRAY asserts that value is a array type.

Argument Type Default value Description
actual Any Value to test.
message String Message to display on error.

Returns None


T::BINARY

Source

BINARY asserts that value is a binary type.

Argument Type Default value Description
actual Any Value to test.
message String Message to display on error.

Returns None


T::DATETIME

Source

DATETIME asserts that value is a datetime type.

Argument Type Default value Description
actual Any Value to test.
message String Message to display on error.

Returns None


T::EMPTY

Source

EMPTY asserts that the target does not contain any values.

Argument Type Default value Description
actual Measurable Binary Object Any[] String Value to test.
message String Message to display on error.

Returns None


T::EQUAL

Source

EQUAL asserts equality of actual and expected values.

Argument Type Default value Description
actual Any Actual value.
expected Any Expected value.
message String Message to display on error.

Returns None


T::FAIL

Source

FAIL returns an error.

Argument Type Default value Description
message String Message to display on error.

Returns None


T::FALSE

Source

FALSE asserts that value is false.

Argument Type Default value Description
actual Any Value to test.
message String Message to display on error.

Returns None


T::FLOAT

Source

FLOAT asserts that value is a float type.

Argument Type Default value Description
actual Any Value to test.
message String Message to display on error.

Returns None


T::GT

Source

GT asserts that an actual value is greater than an expected one.

Argument Type Default value Description
actual Any Actual value.
expected Any Expected value.
message String Message to display on error.

Returns None


T::GTE

Source

GTE asserts that an actual value is greater than or equal to an expected one.

Argument Type Default value Description
actual Any Actual value.
expected Any Expected value.
message String Message to display on error.

Returns None


T::INCLUDE

Source

INCLUDE asserts that haystack includes needle.

Argument Type Default value Description
actual String Array Object Iterable Haystack value.
expected Any Expected value.
message String Message to display on error.

Returns None


T::INT

Source

INT asserts that value is a int type.

Argument Type Default value Description
actual Any Actual value.
message String Message to display on error.

Returns None


T::LEN

Source

LEN asserts that a measurable value has a length or size with the expected value.

Argument Type Default value Description
actual Measurable Measurable value.
length Int Target length.
message String Message to display on error.

Returns None


T::LT

Source

LT asserts that an actual value is lesser than an expected one.

Argument Type Default value Description
actual Any Actual value.
expected Any Expected value.
message String Message to display on error.

Returns None


T::LTE

Source

LTE asserts that an actual value is lesser than or equal to an expected one.

Argument Type Default value Description
actual Any Actual value.
expected Any Expected value.
message String Message to display on error.

Returns None


T::MATCH

Source

MATCH asserts that value matches the regular expression.

Argument Type Default value Description
actual Any Actual value.
expression String Regular expression.
message String Message to display on error.

Returns None


T::NONE

Source

NONE asserts that value is none.

Argument Type Default value Description
actual Any Value to test.
message String Message to display on error.

Returns None


T::OBJECT

Source

OBJECT asserts that value is a object type.

Argument Type Default value Description
actual Any Value to test.
message String Message to display on error.

Returns None


T::STRING

Source

STRING asserts that value is a string type.

Argument Type Default value Description
actual Any Value to test.
message String Message to display on error.

Returns None


T::TRUE

Source

TRUE asserts that value is true.

Argument Type Default value Description
actual Any Value to test.
message String Message to display on error.

Returns None