1 | <?php |
||
17 | class TestEndedEvent extends TestEvent |
||
18 | { |
||
19 | |||
20 | /** |
||
21 | * Test result. |
||
22 | * |
||
23 | * @var \PHPUnit_Framework_TestResult |
||
24 | */ |
||
25 | private $_testResult; |
||
26 | |||
27 | /** |
||
28 | * Remembers the exception which caused test to fail. |
||
29 | * |
||
30 | * @param BrowserTestCase $test_case Test case. |
||
31 | * @param \PHPUnit_Framework_TestResult $test_result Test result. |
||
32 | * @param Session $session Session. |
||
33 | */ |
||
34 | 14 | public function __construct( |
|
35 | BrowserTestCase $test_case, |
||
36 | \PHPUnit_Framework_TestResult $test_result, |
||
37 | Session $session = null |
||
38 | ) { |
||
39 | 14 | parent::__construct($test_case, $session); |
|
40 | 14 | $this->_testResult = $test_result; |
|
41 | 14 | } |
|
42 | |||
43 | /** |
||
44 | * Returns test result. |
||
45 | * |
||
46 | * @return \PHPUnit_Framework_TestResult |
||
47 | */ |
||
48 | 5 | public function getTestResult() |
|
52 | |||
53 | } |
||
54 |