Permalink
91b4029 Jan 25, 2016
@tiger-seo @DavertMik
40 lines (33 sloc) 638 Bytes
<?php
namespace Codeception\Event;
use Symfony\Component\EventDispatcher\Event;
class TestEvent extends Event
{
/**
* @var \PHPUnit_Framework_Test
*/
protected $test;
/**
* @var float Time taken
*/
protected $time;
public function __construct(\PHPUnit_Framework_Test $test, $time = 0)
{
$this->test = $test;
$this->time = $time;
}
/**
* @return float
*/
public function getTime()
{
return $this->time;
}
/**
* @return \Codeception\TestInterface
*/
public function getTest()
{
return $this->test;
}
}