Laravel: How to enable stacktrace error on PhpUnit
Laravel: How to enable stacktrace error on PhpUnit I have a fresh installation of laravel 5.4 I've tried to modify the default test just to see a failing test. tests/ExampleTest.php class ExampleTest extends TestCase { /** * A basic test example. * * @return void */ public function testBasicTest() { $response = $this->get('/ooops'); $response->assertStatus(200); } } I was expecting to see more detailed error like no route has been found or defined etc, but instead just this error saying no route has been found or defined Time: 1.13 seconds, Memory: 8.00MB There was 1 failure: 1) TestsFeatureExampleTest::testBasicTest Expected status code 200 but received 404. Failed asserting that false is true. /var/www/vendor/laravel/framework/src/Illuminate/Foundation/Testing/TestResponse.php:51 /var/www/tests/Feature/ExampleTest.php:21 Its really hard to do TDD without meaningful error (yeah I know 404 in this case is enough, bu...
