T::ARRAY
SourceARRAY 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
SourceBINARY 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
SourceDATETIME 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
SourceEMPTY 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
SourceEQUAL 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
SourceFAIL returns an error.
Argument | Type | Default value | Description |
message |
String |
Message to display on error. |
Returns None
T::FALSE
SourceFALSE 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
SourceFLOAT 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
SourceGT 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
SourceGTE 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
SourceINCLUDE 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
SourceINT 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
SourceLEN 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
SourceLT 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
SourceLTE 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
SourceMATCH 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
SourceNONE 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
SourceOBJECT 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
SourceSTRING 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
SourceTRUE asserts that value is true.
Argument | Type | Default value | Description |
actual |
Any |
Value to test. | |
message |
String |
Message to display on error. |
Returns None