I wonder if PHPUnit is just running the ExampleTest.php contained within the core Laravel Repository. Where have you saved your code to?
Might be worth checking your phpunit.xml to check that it has the directory to where your tests sits, listed under <testsuite> tags.
Also, write a test that you know will definitely fail:
/** @test */
public function it_correctly_loads_the_homepage()
{
$this->call('GET', '/thistestaintgonnaworkinamillionyears');
$this->assertResponseOk();
}
to check that PHPUnit is loading your test files.
In terms of good tutorials...my man/lady you're in the right place. Jeffrey is a PHP testing guru and his book Laravel Testing Decoded is simply excellent along with all his testing videos:
- https://leanpub.com/laravel-testing-decoded
- https://laracasts.com/collections/testing-in-php
- https://laracasts.com/series/intuitive-integration-testing
I found the series which helped me the most in terms of understanding how to incorporate testing into my daily workflow was the Larabook series:
The one that's changed for me since Larabook is to use PHPUnit in place of Codeception and this largely due to Jeffrey's Laracasts Integrated package which you can learn more about in link 3 above.