@@ -57,10 +57,6 @@ public function printResult(TestResult $result): void
57
57
*/
58
58
public function addError (Test $ test , \Throwable $ t , float $ time ): void
59
59
{
60
- if (!$ test instanceof TestCase) {
61
- return ;
62
- }
63
-
64
60
$ this ->printEvent (
65
61
'testFailed ' ,
66
62
[
@@ -79,10 +75,6 @@ public function addError(Test $test, \Throwable $t, float $time): void
79
75
*/
80
76
public function addWarning (Test $ test , Warning $ e , float $ time ): void
81
77
{
82
- if (!$ test instanceof TestCase) {
83
- return ;
84
- }
85
-
86
78
$ this ->printEvent (
87
79
'testFailed ' ,
88
80
[
@@ -101,10 +93,6 @@ public function addWarning(Test $test, Warning $e, float $time): void
101
93
*/
102
94
public function addFailure (Test $ test , AssertionFailedError $ e , float $ time ): void
103
95
{
104
- if (!$ test instanceof TestCase) {
105
- return ;
106
- }
107
-
108
96
$ parameters = [
109
97
'name ' => $ test ->getName (),
110
98
'message ' => self ::getMessage ($ e ),
@@ -144,10 +132,6 @@ public function addFailure(Test $test, AssertionFailedError $e, float $time): vo
144
132
*/
145
133
public function addIncompleteTest (Test $ test , \Throwable $ t , float $ time ): void
146
134
{
147
- if (!$ test instanceof TestCase) {
148
- return ;
149
- }
150
-
151
135
$ this ->printIgnoredTest ($ test ->getName (), $ t , $ time );
152
136
}
153
137
@@ -158,10 +142,6 @@ public function addIncompleteTest(Test $test, \Throwable $t, float $time): void
158
142
*/
159
143
public function addRiskyTest (Test $ test , \Throwable $ t , float $ time ): void
160
144
{
161
- if (!$ test instanceof TestCase) {
162
- return ;
163
- }
164
-
165
145
$ this ->addError ($ test , $ t , $ time );
166
146
}
167
147
@@ -172,10 +152,6 @@ public function addRiskyTest(Test $test, \Throwable $t, float $time): void
172
152
*/
173
153
public function addSkippedTest (Test $ test , \Throwable $ t , float $ time ): void
174
154
{
175
- if (!$ test instanceof TestCase) {
176
- return ;
177
- }
178
-
179
155
$ testName = $ test ->getName ();
180
156
181
157
if ($ this ->startedTestName !== $ testName ) {
@@ -277,10 +253,6 @@ public function endTestSuite(TestSuite $suite): void
277
253
*/
278
254
public function startTest (Test $ test ): void
279
255
{
280
- if (!$ test instanceof TestCase) {
281
- return ;
282
- }
283
-
284
256
$ testName = $ test ->getName ();
285
257
$ this ->startedTestName = $ testName ;
286
258
$ params = ['name ' => $ testName ];
@@ -299,10 +271,6 @@ public function startTest(Test $test): void
299
271
*/
300
272
public function endTest (Test $ test , float $ time ): void
301
273
{
302
- if (!$ test instanceof TestCase) {
303
- return ;
304
- }
305
-
306
274
parent ::endTest ($ test , $ time );
307
275
308
276
$ this ->printEvent (
0 commit comments