Skip to content

Relative path issues #5

@DigitalMachinist

Description

@DigitalMachinist

Upon discovering this package, I figured I'd give it a go for testing some of my first october plugins. However, after requiring with composer I was getting all kinds of file not found-ish errors when running phpunit.

I looked into the offending lines and after a couple of hacks I got things working again, but I figured you may want to know what I did. So here goes:

keios/oc-plugin-testsuite/bootstrap/autoload.php:7
This line was generating a path 3 levels up the directory tree from where it should be. I simply trimmed out a bunch of .. symbols from the path to resolve this for my own case.

Original:

require __DIR__ . '/../../../../../../../bootstrap/autoload.php';

Modified:

require __DIR__ . '/../../../../bootstrap/autoload.php';

keios/oc-plugin-testsuite/OctoberPluginTestCase.php:32
Same situation here, and same solution.

Original:

$app = require __DIR__.'/../../../../../../bootstrap/app.php';

Modified:

$app = require __DIR__.'/../../../bootstrap/app.php';

I realize this probably isn't any kind of reasonable long-term fix, but I just wanted you to know this may become an issue for others downloading this package and trying to use it.

Let me know if there are any other details you need to know.

Looks like a helpful package if you're doing any serious work with October. Thanks for your work on this so far!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions