PHP Класс Bolt\Tests\BoltListener

Автор: Gawain Lynch ([email protected])
Наследование: implements PHPUnit_Framework_TestListener
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$boltdb string
$configs array
$currentSuite string
$reset boolean
$theme string
$timer boolean
$tracker array

Открытые методы

Метод Описание
__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.

Защищенные методы

Метод Описание
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.

Приватные методы

Метод Описание
buildTestEnv ( ) Build the pre-requisites for our test environment
cleanTestEnv ( ) Clean up after test runs

Описание методов

__construct() публичный Метод

Called on init of PHPUnit exectution.
См. также: PHPUnit_Util_Configuration
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

__destruct() публичный Метод

Add code here to clean up our test environment.
public __destruct ( )

addError() публичный Метод

An error occurred.
См. также: PHPUnit_Framework_TestListener::addError()
public addError ( PHPUnit_Framework_Test $test, Exception $e, float $time )
$test PHPUnit_Framework_Test
$e Exception
$time float

addFailure() публичный Метод

A failure occurred.
См. также: PHPUnit_Framework_TestListener::addFailure()
public addFailure ( PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, float $time )
$test PHPUnit_Framework_Test
$e PHPUnit_Framework_AssertionFailedError
$time float

addIncompleteTest() публичный Метод

A test was incomplete.
См. также: PHPUnit_Framework_TestListener::addIncompleteTest()
public addIncompleteTest ( PHPUnit_Framework_Test $test, Exception $e, float $time )
$test PHPUnit_Framework_Test
$e Exception
$time float

addRiskyTest() публичный Метод

A test is deemed risky.
См. также: PHPUnit_Framework_TestListener::addRiskyTest()
public addRiskyTest ( PHPUnit_Framework_Test $test, Exception $e, float $time )
$test PHPUnit_Framework_Test
$e Exception
$time float

addSkippedTest() публичный Метод

Test has been skipped.
См. также: PHPUnit_Framework_TestListener::addSkippedTest()
public addSkippedTest ( PHPUnit_Framework_Test $test, Exception $e, float $time )
$test PHPUnit_Framework_Test
$e Exception
$time float

endTest() публичный Метод

A test ended.
См. также: PHPUnit_Framework_TestListener::endTest()
public endTest ( PHPUnit_Framework_Test $test, float $time )
$test PHPUnit_Framework_Test
$time float

endTestSuite() публичный Метод

A test suite ended.
См. также: PHPUnit_Framework_TestListener::endTestSuite()
public endTestSuite ( PHPUnit_Framework_TestSuite $suite )
$suite PHPUnit_Framework_TestSuite

getBoltDb() защищенный Метод

Get the Bolt unit test Sqlite database.
protected getBoltDb ( string $boltdb ) : string
$boltdb string
Результат string

getConfigs() защищенный Метод

Get a valid array of configuration files.
protected getConfigs ( array $configs ) : array
$configs array
Результат array

getPath() защищенный Метод

Resolve a file path.
protected getPath ( string $name, string $file ) : string
$name string
$file string
Результат string

getTheme() защищенный Метод

Get the path to the theme to be used in the unit test.
protected getTheme ( string $theme ) : string
$theme string
Результат string

startTest() публичный Метод

A test started.
См. также: PHPUnit_Framework_TestListener::startTest()
public startTest ( PHPUnit_Framework_Test $test )
$test PHPUnit_Framework_Test

startTestSuite() публичный Метод

A test suite started.
См. также: PHPUnit_Framework_TestListener::startTestSuite()
public startTestSuite ( PHPUnit_Framework_TestSuite $suite )
$suite PHPUnit_Framework_TestSuite

Описание свойств

$boltdb защищенное свойство

protected string $boltdb
Результат string

$configs защищенное свойство

protected array $configs
Результат array

$currentSuite защищенное свойство

protected string $currentSuite
Результат string

$reset защищенное свойство

protected bool $reset
Результат boolean

$theme защищенное свойство

protected string $theme
Результат string

$timer защищенное свойство

protected bool $timer
Результат boolean

$tracker защищенное свойство

protected array $tracker
Результат array