sebastianbergmann/phpunit — Issue #462: Unhelpful error message for empty test classes in --strict mode 
Author: edorian
Created: 2012-01-16 12:47:46+00:00
State: open

Normal mode:

```
phpunit emptyTest.php
PHPUnit 3.6.7 by Sebastian Bergmann.

F

Time: 0 seconds, Memory: 2.75Mb

There was 1 failure:

1) Warning
No tests found in class "Foo".

FAILURES!
Tests: 1, Assertions: 0, Failures: 1.
```

Strict mode

```
phpunit --strict emptyTest.php
PHPUnit 3.6.7 by Sebastian Bergmann.

E

Time: 0 seconds, Memory: 2.75Mb

There was 1 error:

1) Warning
ReflectionException: Method PHPUnit_Framework_Warning::Warning() does not exist

FAILURES!
Tests: 1, Assertions: 0, Errors: 1.
```