Support the ongoing development of Laravel.io →
posted 7 years ago

I trying to run phpunit inside larvel command but laravel affect the phpunit enviroment.

public function fire()
{
   passthru('vendor\bin\phpunit', $return);
}

When running phpunit from cmd it running with the testing environment but when I try to run though laravel command it always use the default enviroment.

Any suggestions?
Thanks
Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

nadavvin nadavvin Joined 3 Mar 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.