-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Skip Symfony 3.4 tests on PHP 8 (#222)
- Loading branch information
Showing
3 changed files
with
54 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,15 @@ | ||
<?php | ||
|
||
$loader = @include __DIR__.'/../vendor/autoload.php'; | ||
if (!$loader) { | ||
die(<<<'EOT' | ||
You must set up the project dependencies, run the following commands: | ||
wget http://getcomposer.org/composer.phar | ||
php composer.phar install | ||
EOT | ||
); | ||
} | ||
|
||
passthru(sprintf('rm -rf %s/App/cache', __DIR__)); | ||
spl_autoload_register(function ($class) { | ||
if (0 === strpos($class, 'Oneup\\FlysystemBundle\\')) { | ||
$path = __DIR__.'/../'.implode('/', array_slice(explode('\\', $class), 2)).'.php'; | ||
if (!stream_resolve_include_path($path)) { | ||
return false; | ||
} | ||
require_once $path; | ||
declare(strict_types=1); | ||
|
||
return true; | ||
} | ||
}); | ||
if (!($loader = @include __DIR__ . '/../vendor/autoload.php')) { | ||
echo <<<'EOT' | ||
You need to install the project dependencies using Composer: | ||
$ wget http://getcomposer.org/composer.phar | ||
OR | ||
$ curl -s https://getcomposer.org/installer | php | ||
$ php composer.phar install --dev | ||
$ phpunit | ||
EOT; | ||
exit(1); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters