1 | <?php |
||
25 | class TestListener implements PHPUnitTestListener |
||
26 | { |
||
27 | /** |
||
28 | * @staticvar array |
||
29 | */ |
||
30 | public static $userParams = [ |
||
31 | 'email' => '[email protected]', |
||
32 | 'password' => ['testpassword', 'testpassword'], |
||
33 | 'first_name' => 'Bob', |
||
34 | 'ip' => '127.0.0.1', |
||
35 | ]; |
||
36 | |||
37 | public function __construct() |
||
63 | |||
64 | public function addError(PHPUnitTest $test, Exception $e, $time) |
||
67 | |||
68 | public function addWarning(PHPUnitTest $test, Warning $e, $time) |
||
71 | |||
72 | public function addFailure(PHPUnitTest $test, AssertionFailedError $e, $time) |
||
75 | |||
76 | public function addIncompleteTest(PHPUnitTest $test, Exception $e, $time) |
||
79 | |||
80 | public function addRiskyTest(PHPUnitTest $test, Exception $e, $time) |
||
83 | |||
84 | public function addSkippedTest(PHPUnitTest $test, Exception $e, $time) |
||
87 | |||
88 | public function startTest(PHPUnitTest $test) |
||
92 | |||
93 | public function endTest(PHPUnitTest $test, $time) |
||
96 | |||
97 | public function startTestSuite(TestSuite $suite) |
||
100 | |||
101 | public function endTestSuite(TestSuite $suite) |
||
104 | } |
||
105 |