hoaproject / Protocol

The Hoa\Protocol library.
https://hoa-project.net/
308 stars 25 forks source link

`hoa://Library` must look into root Composer directory if Composer #10

Closed Hywan closed 8 years ago

Hywan commented 8 years ago

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 8 years ago

This is a regression. It's fixed now.