@@ -23,45 +23,109 @@ class Framework_TestListenerTest extends PHPUnit_Framework_TestCase implements P
2323 protected $ result ;
2424 protected $ startCount ;
2525
26+ /**
27+ * An error occurred.
28+ *
29+ * @param PHPUnit_Framework_Test $test
30+ * @param \Exception|\Throwable $e
31+ * @param float $time
32+ */
2633 public function addError (PHPUnit_Framework_Test $ test , $ e , $ time )
2734 {
2835 assert ($ e instanceof \Exception || $ e instanceof \Error);
2936 $ this ->errorCount ++;
3037 }
3138
39+ /**
40+ * A failure occurred.
41+ *
42+ * @param PHPUnit_Framework_Test $test
43+ * @param PHPUnit_Framework_AssertionFailedError $e
44+ * @param float $time
45+ */
3246 public function addFailure (PHPUnit_Framework_Test $ test , PHPUnit_Framework_AssertionFailedError $ e , $ time )
3347 {
3448 $ this ->failureCount ++;
3549 }
3650
51+ /**
52+ * Incomplete test.
53+ *
54+ * @param PHPUnit_Framework_Test $test
55+ * @param \Exception|\Throwable $e
56+ * @param float $time
57+ */
3758 public function addIncompleteTest (PHPUnit_Framework_Test $ test , $ e , $ time )
3859 {
3960 $ this ->notImplementedCount ++;
4061 }
4162
63+ /**
64+ * Risky test.
65+ *
66+ * @param PHPUnit_Framework_Test $test
67+ * @param \Exception|\Throwable $e
68+ * @param float $time
69+ *
70+ * @since Method available since Release 4.0.0
71+ */
4272 public function addRiskyTest (PHPUnit_Framework_Test $ test , $ e , $ time )
4373 {
4474 $ this ->riskyCount ++;
4575 }
4676
77+ /**
78+ * Skipped test.
79+ *
80+ * @param PHPUnit_Framework_Test $test
81+ * @param \Exception|\Throwable $e
82+ * @param float $time
83+ *
84+ * @since Method available since Release 3.0.0
85+ */
4786 public function addSkippedTest (PHPUnit_Framework_Test $ test , $ e , $ time )
4887 {
4988 $ this ->skippedCount ++;
5089 }
5190
91+ /**
92+ * A testsuite started.
93+ *
94+ * @param PHPUnit_Framework_TestSuite $suite
95+ *
96+ * @since Method available since Release 2.2.0
97+ */
5298 public function startTestSuite (PHPUnit_Framework_TestSuite $ suite )
5399 {
54100 }
55101
102+ /**
103+ * A testsuite ended.
104+ *
105+ * @param PHPUnit_Framework_TestSuite $suite
106+ *
107+ * @since Method available since Release 2.2.0
108+ */
56109 public function endTestSuite (PHPUnit_Framework_TestSuite $ suite )
57110 {
58111 }
59112
113+ /**
114+ * A test started.
115+ *
116+ * @param PHPUnit_Framework_Test $test
117+ */
60118 public function startTest (PHPUnit_Framework_Test $ test )
61119 {
62120 $ this ->startCount ++;
63121 }
64122
123+ /**
124+ * A test ended.
125+ *
126+ * @param PHPUnit_Framework_Test $test
127+ * @param float $time
128+ */
65129 public function endTest (PHPUnit_Framework_Test $ test , $ time )
66130 {
67131 $ this ->endCount ++;
0 commit comments