Merge branch 'master' into feature/add-container

This commit is contained in:
Nuno Maduro
2020-06-05 22:39:02 +02:00
committed by GitHub
20 changed files with 146 additions and 88 deletions

View File

@ -1,6 +1,7 @@
#!/usr/bin/env php
<?php declare(strict_types=1);
use NunoMaduro\Collision\Provider;
use Pest\Actions\ValidatesEnvironment;
use Pest\Console\Command;
use Pest\Support\Container;
@ -10,18 +11,18 @@ use Symfony\Component\Console\Output\OutputInterface;
(static function () {
// Used when Pest is required using composer.
$vendorPath = realpath(__DIR__ . '/../../../../vendor/autoload.php');
$vendorPath = dirname(__DIR__, 4) . '/vendor/autoload.php';
// Used when Pest maintainers are running Pest tests.
$localPath = realpath(__DIR__ . '/../vendor/autoload.php');
$localPath = dirname(__DIR__) . '/vendor/autoload.php';
if ($vendorPath) {
if (file_exists($vendorPath)) {
include_once $vendorPath;
} else {
include_once $localPath;
}
(new \NunoMaduro\Collision\Provider)->register();
(new Provider())->register();
$rootPath = getcwd();