This is the Test class version 1.0.
Provides a basic test suite.
$test = Test()
Creates a new Test class instance.
-
optional name: Any - Test name.
-
optional fatal: Any - If true, a failed test will throw a fatal error. This is the default behavior.
$test.trueValue($a)
Test succeeds if Bool($a) === true
.
- a: Any - Test object.
$test.veryTrue($a)
Test succeeds if $a === true
.
- a: Any - Test object.
$test.equal($a, $b)
Test succeeds if $a == $b
.
-
a: Any - Test object 1.
-
b: Any - Test object 2.
$test.objectsEqual($a, $b)
Test succeeds if $a === $b
.
-
a: Any - Test object 1.
-
b: Any - Test object 2.
$test.notEqual($a, $b)
Test succeeds if $a != $b
.
-
a: Any - Test object 1.
-
b: Any - Test object 2.
$test.objectsNotEqual($a, $b)
Test succeeds if $a !== $b
.
-
a: Any - Test object 1.
-
b: Any - Test object 2.
$test.instanceOfClass($a, $b)
Test succeeds of $a
is an instance of class $b
.
-
a: Any - Test object.
-
b: Any - Test class.
$test.fitsType($a, $b)
Test succeeds of $a
satisfies type $b
.
-
a: Any - Test object.
-
b: Any - Test type.
$test.review()
Prints the test review.
- optional quiet: Bool
End of the Test class.
This file was generated automatically by the Ferret compiler from Test.frt.