I\'m starting to write PHPUnit tests and I\'d like the tests to be run from developers machines as well as from our servers. Developers machines are set up differently than
One way would be for you to inspect $argv and $argc. Something like:
assertGreaterThan(2, $argc, 'No environment name passed'); $environment = $argv[2]; } }
Then you can call your phpunittest like this:
phpunit EnvironmentTest.php my-computer