@@ -37,7 +37,6 @@ class SymfonyTestsListenerTrait
37
37
private $ gatheredDeprecations = array ();
38
38
private $ previousErrorHandler ;
39
39
private $ testsWithWarnings ;
40
- private $ reportUselessTests ;
41
40
private $ error ;
42
41
private $ runsInSeparateProcess = false ;
43
42
@@ -198,10 +197,6 @@ public function addSkippedTest($test, \Exception $e, $time)
198
197
public function startTest ($ test )
199
198
{
200
199
if (-2 < $ this ->state && ($ test instanceof \PHPUnit \Framework \TestCase || $ test instanceof TestCase)) {
201
- if (null !== $ test ->getTestResultObject ()) {
202
- $ this ->reportUselessTests = $ test ->getTestResultObject ()->isStrictAboutTestsThatDoNotTestAnything ();
203
- }
204
-
205
200
// This event is triggered before the test is re-run in isolation
206
201
if ($ this ->willBeIsolated ($ test )) {
207
202
$ this ->runsInSeparateProcess = tempnam (sys_get_temp_dir (), 'deprec ' );
@@ -267,11 +262,6 @@ public function endTest($test, $time)
267
262
$ classGroups = $ Test ::getGroups ($ className );
268
263
$ groups = $ Test ::getGroups ($ className , $ test ->getName (false ));
269
264
270
- if (null !== $ this ->reportUselessTests ) {
271
- $ test ->getTestResultObject ()->beStrictAboutTestsThatDoNotTestAnything ($ this ->reportUselessTests );
272
- $ this ->reportUselessTests = null ;
273
- }
274
-
275
265
if ($ errored = null !== $ this ->error ) {
276
266
$ test ->getTestResultObject ()->addError ($ test , $ this ->error , 0 );
277
267
$ this ->error = null ;
0 commit comments