When we run tests, we use: vendor/bin/hoa test:run -d Test from the Foo directory. Imagine the Qux.php test suite uses hoa://Library to access a file inside vendor/hoa/. No problem! However, if it is to access a file like Bar.php or Baz.php, then it fails because hoa/protocol is installed inside vendor/hoa/.
So hoa://Library/ must look into parent-parent-parent directory too if installed with Composer. This path must be added on-the-fly.
Let say we have this situation:
When we run tests, we use:
vendor/bin/hoa test:run -d Test
from theFoo
directory. Imagine theQux.php
test suite useshoa://Library
to access a file insidevendor/hoa/
. No problem! However, if it is to access a file likeBar.php
orBaz.php
, then it fails becausehoa/protocol
is installed insidevendor/hoa/
.So
hoa://Library/
must look into parent-parent-parent directory too if installed with Composer. This path must be added on-the-fly.