`hoa://Library` must look into root Composer directory if Composer
Hywan opened this issue · 1 comments
Hywan commented
Let say we have this situation:
/Foo
Bar.php
Baz.php
Test/
Unit/
Qux.php
vendor/
hoa/
test/
…
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.
Hywan commented
This is a regression. It's fixed now.