d1596
d1596

Reputation: 1307

Laravel Homestead not printing out to console with var_dump() or dump() during unit tests

I have a homestead instance of a project and am running my unit tests using the php artisan test command. However I'm unable to print anything to console within any tests that are run.

public function testTest()
    {
        var_dump('testing print to console');
        dump('testing print to console');
        echo('testing print to console');
    }

When running php artisan test this test actually runs but none of the strings can printed out to the console

Upvotes: 1

Views: 1329

Answers (1)

d1596
d1596

Reputation: 1307

So for some reason var_dump will only work with a dd() or die() after it

Upvotes: 1

Related Questions