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!
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:
Modified:
keios/oc-plugin-testsuite/OctoberPluginTestCase.php:32
Same situation here, and same solution.
Original:
Modified:
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!