Force predictable working dir; create autoloader file if it doesn't exist

This commit is contained in:
Christian Bläul
2018-02-18 19:31:24 +01:00
parent 76a0406eff
commit 92653c99c5

View File

@@ -1,4 +1,9 @@
<?php
chdir(__DIR__ . '/..');
if (!file_exists('vendor/autoload.php')) {
`composer dump-autoload`;
}
require './vendor/autoload.php';
if (!class_exists('PHPUnit\Framework\TestCase')) {