Quantcast
Channel: Nick – Nick Hayden – Web Development for the Masses
Viewing all articles
Browse latest Browse all 22

Laravel 5 “No tests found in TestCase” error

$
0
0

If you’re running the default Laravel 5 tests with PHPUnit you might come across the above error. This is because there are no functions with “test” prepended to the start of them. In your TestCase.php file you shouldn’t really have any of that because it is setting up your application for testing.

To remove this test failure add “abstract” to the start of your class declaration for TestCase.php so the new line looks like:

abstract class TestCase extends Illuminate\Foundation\Testing\TestCase

Viewing all articles
Browse latest Browse all 22

Trending Articles