Fix bug in style changes for the Use cases on the live site.
[yaffs-website] / vendor / phpunit / phpunit / src / Framework / TestListener.php
1 <?php
2 /*
3  * This file is part of PHPUnit.
4  *
5  * (c) Sebastian Bergmann <sebastian@phpunit.de>
6  *
7  * For the full copyright and license information, please view the LICENSE
8  * file that was distributed with this source code.
9  */
10
11 /**
12  * A Listener for test progress.
13  *
14  * @since Interface available since Release 2.0.0
15  */
16 interface PHPUnit_Framework_TestListener
17 {
18     /**
19      * An error occurred.
20      *
21      * @param PHPUnit_Framework_Test $test
22      * @param Exception              $e
23      * @param float                  $time
24      */
25     public function addError(PHPUnit_Framework_Test $test, Exception $e, $time);
26
27     /**
28      * A failure occurred.
29      *
30      * @param PHPUnit_Framework_Test                 $test
31      * @param PHPUnit_Framework_AssertionFailedError $e
32      * @param float                                  $time
33      */
34     public function addFailure(PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, $time);
35
36     /**
37      * Incomplete test.
38      *
39      * @param PHPUnit_Framework_Test $test
40      * @param Exception              $e
41      * @param float                  $time
42      */
43     public function addIncompleteTest(PHPUnit_Framework_Test $test, Exception $e, $time);
44
45     /**
46      * Risky test.
47      *
48      * @param PHPUnit_Framework_Test $test
49      * @param Exception              $e
50      * @param float                  $time
51      *
52      * @since  Method available since Release 4.0.0
53      */
54     public function addRiskyTest(PHPUnit_Framework_Test $test, Exception $e, $time);
55
56     /**
57      * Skipped test.
58      *
59      * @param PHPUnit_Framework_Test $test
60      * @param Exception              $e
61      * @param float                  $time
62      *
63      * @since  Method available since Release 3.0.0
64      */
65     public function addSkippedTest(PHPUnit_Framework_Test $test, Exception $e, $time);
66
67     /**
68      * A test suite started.
69      *
70      * @param PHPUnit_Framework_TestSuite $suite
71      *
72      * @since  Method available since Release 2.2.0
73      */
74     public function startTestSuite(PHPUnit_Framework_TestSuite $suite);
75
76     /**
77      * A test suite ended.
78      *
79      * @param PHPUnit_Framework_TestSuite $suite
80      *
81      * @since  Method available since Release 2.2.0
82      */
83     public function endTestSuite(PHPUnit_Framework_TestSuite $suite);
84
85     /**
86      * A test started.
87      *
88      * @param PHPUnit_Framework_Test $test
89      */
90     public function startTest(PHPUnit_Framework_Test $test);
91
92     /**
93      * A test ended.
94      *
95      * @param PHPUnit_Framework_Test $test
96      * @param float                  $time
97      */
98     public function endTest(PHPUnit_Framework_Test $test, $time);
99 }