mirror of
https://github.com/parsecsv/parsecsv-for-php.git
synced 2026-02-19 08:36:39 +00:00
Force predictable working dir; create autoloader file if it doesn't exist
This commit is contained in:
@@ -1,4 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
|
chdir(__DIR__ . '/..');
|
||||||
|
if (!file_exists('vendor/autoload.php')) {
|
||||||
|
`composer dump-autoload`;
|
||||||
|
}
|
||||||
|
|
||||||
require './vendor/autoload.php';
|
require './vendor/autoload.php';
|
||||||
|
|
||||||
if (!class_exists('PHPUnit\Framework\TestCase')) {
|
if (!class_exists('PHPUnit\Framework\TestCase')) {
|
||||||
|
|||||||
Reference in New Issue
Block a user