PHP Class PhpSpec\Event\ExampleEvent

Inheritance: extends Symfony\Component\EventDispatcher\Event, implements PhpSpecEvent
Exibir arquivo Open project: phpspec/phpspec Class Usage Examples

Public Methods

Method Description
__construct ( ExampleNode $example, float | null $time = null, integer | null $result = null, Exception $exception = null )
getBacktrace ( ) : array
getExample ( ) : ExampleNode
getException ( ) : Exception
getMessage ( ) : string
getResult ( ) : integer
getSpecification ( ) : SpecificationNode
getSuite ( ) : PhpSpec\Loader\Suite
getTime ( ) : float
getTitle ( ) : string

Method Details

__construct() public method

public __construct ( ExampleNode $example, float | null $time = null, integer | null $result = null, Exception $exception = null )
$example PhpSpec\Loader\Node\ExampleNode
$time float | null
$result integer | null
$exception Exception

getBacktrace() public method

public getBacktrace ( ) : array
return array

getExample() public method

public getExample ( ) : ExampleNode
return PhpSpec\Loader\Node\ExampleNode

getException() public method

public getException ( ) : Exception
return Exception

getMessage() public method

public getMessage ( ) : string
return string

getResult() public method

public getResult ( ) : integer
return integer

getSpecification() public method

public getSpecification ( ) : SpecificationNode
return PhpSpec\Loader\Node\SpecificationNode

getSuite() public method

public getSuite ( ) : PhpSpec\Loader\Suite
return PhpSpec\Loader\Suite

getTime() public method

public getTime ( ) : float
return float

getTitle() public method

public getTitle ( ) : string
return string