Q_TestCase Class
This class lets you run test cases
Item Index
Properties
Methods
clear
(
-
string
Clears a fixture variable
Parameters:
-
stringObject$name The name of the variable
get
(
Mixed
-
$name -
[$default=null]
get a fixture variable
Parameters:
-
$nameString -
[$default=null]Mixed optional
Returns:
Mixed:
getAll
()
Array
Gets all the fixture variables. Typically, you would do extract($this->getAll()) at the beginning of a test.
Returns:
Array:
restoreState
()
Restores the initial state of the State
run
()
Array
Runs the tests
Returns:
Array:
$results Returns array of results. A result consists of
saveState
()
Saves the initial state of the State
set
(
Mixed
-
$name -
[$value=null]
set up a fixture variable
Parameters:
-
$nameString -
[$value=null]Mixed optional
Returns:
Mixed:
testFailed
(
-
string
Call to indicate the test failed
Parameters:
-
stringObject[$message="failed"] Optional custom message.
testIncomplete
(
-
string
Call to indicate the test is not yet completely written.
Parameters:
-
stringObject[$message="incomplete"] Optional custom message.
testSkipped
(
-
string
Call to indicate the test was skipped
Parameters:
-
stringObject[$message="skipped"] Optional custom message.