Reputation: 1307
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
Reputation: 1307
So for some reason var_dump will only work with a dd()
or die()
after it
Upvotes: 1