Methods
All methods in the Solar_Test class.
Public
-
__construct() -
Constructor.
-
__destruct() -
Teardown after the entire unit test.
-
assertEquals() -
Asserts that two variables are equal; type is not strict.
-
assertFalse() -
Asserts that a variable is boolean false.
-
assertInstance() -
Asserts that a object is an instance of a class.
-
assertNotEquals() -
Asserts that two variables are not equal; type is not strict.
-
assertNotFalse() -
Asserts that a variable is not boolean false.
-
assertNotInstance() -
Asserts that a object is not an instance of a class.
-
assertNotNull() -
Asserts that a variable is not PHP null.
-
assertNotRegex() -
Asserts that a value does not match a regular expression pattern using » preg_match().
-
assertNotSame() -
Asserts that two variables are not the same type and value.
-
assertNotTrue() -
Asserts that a variable is not boolean true.
-
assertNull() -
Asserts that a variable is PHP null.
-
assertProperty() -
Asserts that an object property meets criteria.
-
assertRegex() -
Asserts that a value matches a regular expression pattern using » preg_match().
-
assertSame() -
Asserts that two variables have the same type and value.
-
assertTrue() -
Asserts that a variable is boolean true.
-
diag() -
Prints diagnostic output.
-
dump() -
Convenience method for getting a dump the whole object, or one of its properties, or an external variable.
-
error() -
Error handler for this test; throws a test failure.
-
fail() -
Throws an exception indicating a failed test.
-
getAssertCount() -
Returns the number of assertions made by this test.
-
locale() -
Looks up class-specific locale strings based on a key.
-
postTest() -
Runs after each test method; used for restoring state.
-
preTest() -
Runs before each test method; used for preparing state.
-
resetAssertCount() -
Resets the assertion counter to zero.
-
skip() -
Throws an exception indicating a skipped test.
-
todo() -
Throws an exception indicating an incomplete test.
Protected
-
_buildConfig() -
Builds and returns the default config for a class, including all configs inherited from its parents.
-
_exception() -
Convenience method for returning exceptions with localized text.
-
_export() -
Returns the output from Solar_Debug_Var::fetch() for a variable.
-
_ksort() -
Recursively » ksort() an array.
-
_postConfig() -
A hook that activates after _buildConfig() in the constructor.
-
_postConstruct() -
Post-construction tasks to complete object construction.
-
_preConfig() -
A hook that activates before _buildConfig() in the constructor.
Private
None.