PHPUnit Command Line Include Path
- by thatidiotguy
So I have a project structure like so:
MyProject/
src/
//subfolders and source code
.....
tests/
package/
MyTest.php
I am trying to run the unit tests in MyTest.php with PHPUnit but it has a use statement for PHP classes located in the src folder. So I tried to use the include-path directive for PHPUnit like so:
(I am in the directory with MyTest.php)
phpunit --include-path ~/workspace/MyProject/src/ MyTest
Unfortunately execution is halting at the first use statement. What gives?