Property | Type | Description | |
---|---|---|---|
$boltdb | string | ||
$configs | array | ||
$currentSuite | string | ||
$reset | boolean | ||
$theme | string | ||
$timer | boolean | ||
$tracker | array |
Method | Description | |
---|---|---|
__construct ( array $configs = [], boolean $theme = false, boolean $boltDb = false, boolean $reset = true, boolean $timer = true ) | Called on init of PHPUnit exectution. | |
__destruct ( ) | Destructor that will be called at the completion of the PHPUnit execution. | |
addError ( PHPUnit_Framework_Test $test, Exception $e, float $time ) | An error occurred. | |
addFailure ( PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, float $time ) | A failure occurred. | |
addIncompleteTest ( PHPUnit_Framework_Test $test, Exception $e, float $time ) | A test was incomplete. | |
addRiskyTest ( PHPUnit_Framework_Test $test, Exception $e, float $time ) | A test is deemed risky. | |
addSkippedTest ( PHPUnit_Framework_Test $test, Exception $e, float $time ) | Test has been skipped. | |
endTest ( PHPUnit_Framework_Test $test, float $time ) | A test ended. | |
endTestSuite ( PHPUnit_Framework_TestSuite $suite ) | A test suite ended. | |
startTest ( PHPUnit_Framework_Test $test ) | A test started. | |
startTestSuite ( PHPUnit_Framework_TestSuite $suite ) | A test suite started. |
Method | Description | |
---|---|---|
getBoltDb ( string $boltdb ) : string | Get the Bolt unit test Sqlite database. | |
getConfigs ( array $configs ) : array | Get a valid array of configuration files. | |
getPath ( string $name, string $file ) : string | Resolve a file path. | |
getTheme ( string $theme ) : string | Get the path to the theme to be used in the unit test. |
Method | Description | |
---|---|---|
buildTestEnv ( ) | Build the pre-requisites for our test environment | |
cleanTestEnv ( ) | Clean up after test runs |
public __construct ( array $configs = [], boolean $theme = false, boolean $boltDb = false, boolean $reset = true, boolean $timer = true ) | ||
$configs | array | Location of configuration files |
$theme | boolean | Location of the theme |
$boltDb | boolean | Location of Sqlite database |
$reset | boolean | Reset test environment after run |
$timer | boolean | Create test execution timer output |
public addFailure ( PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, float $time ) | ||
$test | PHPUnit_Framework_Test | |
$e | PHPUnit_Framework_AssertionFailedError | |
$time | float |
public addIncompleteTest ( PHPUnit_Framework_Test $test, Exception $e, float $time ) | ||
$test | PHPUnit_Framework_Test | |
$e | Exception | |
$time | float |
public addRiskyTest ( PHPUnit_Framework_Test $test, Exception $e, float $time ) | ||
$test | PHPUnit_Framework_Test | |
$e | Exception | |
$time | float |
public addSkippedTest ( PHPUnit_Framework_Test $test, Exception $e, float $time ) | ||
$test | PHPUnit_Framework_Test | |
$e | Exception | |
$time | float |
public endTestSuite ( PHPUnit_Framework_TestSuite $suite ) | ||
$suite | PHPUnit_Framework_TestSuite |
protected getConfigs ( array $configs ) : array | ||
$configs | array | |
return | array |
public startTest ( PHPUnit_Framework_Test $test ) | ||
$test | PHPUnit_Framework_Test |
public startTestSuite ( PHPUnit_Framework_TestSuite $suite ) | ||
$suite | PHPUnit_Framework_TestSuite |