mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
Changes based on feedback https://github.com/pestphp/pest-intellij/issues/73#issuecomment-709201510
This commit is contained in:
8
bin/pest
8
bin/pest
@ -19,16 +19,16 @@ use Symfony\Component\Console\Output\OutputInterface;
|
|||||||
|
|
||||||
if (file_exists($vendorPath)) {
|
if (file_exists($vendorPath)) {
|
||||||
include_once $vendorPath;
|
include_once $vendorPath;
|
||||||
$rootPath = dirname($vendorPath, 2);
|
$autoloadPath = $vendorPath;
|
||||||
} else {
|
} else {
|
||||||
include_once $localPath;
|
include_once $localPath;
|
||||||
$rootPath = dirname($localPath, 5);
|
$autoloadPath = $localPath;
|
||||||
}
|
}
|
||||||
|
|
||||||
(new Provider())->register();
|
(new Provider())->register();
|
||||||
|
|
||||||
// fallback in case we couldn't find out the path before.
|
// get $rootPath based on $autoloadPath
|
||||||
$rootPath = (isset($rootPath) && !empty($rootPath)) ? $rootPath : getcwd();
|
$rootPath = dirname($autoloadPath, 2);
|
||||||
|
|
||||||
$testSuite = TestSuite::getInstance($rootPath);
|
$testSuite = TestSuite::getInstance($rootPath);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user