In moving the tests to a subdirectory, I had to change my
require_once
statements to point to the parent directory via a relative path. At least, I thought I did.It turns out that
require_once
operates on the current working directory. I was using the following command:C:\Source\> phpunit TestsThe current working directory was C:\Source, so when the require_once attempted to resolve the path, it was looking in C:\.
There are two solutions:
- Remove the relative path markers
- Run phpunit from within the Tests directory
I chose option 2.
No comments:
Post a Comment