PHPUnit: simplified Bootstrap.php without changing functionality.

Notes:
- Using / on Windows is safe.
- __DIR__ is identical to dirname(__FILE)
This commit is contained in:
Christian Bläul
2017-11-25 12:49:14 +01:00
committed by Fonata
parent 4f08cbb561
commit fd5fb96bce

View File

@@ -1,6 +1,6 @@
<?php <?php
$dir = realpath(dirname(__FILE__)); $dir = realpath(__DIR__);
defined('BASE') OR define('BASE', realpath($dir.'/../').DIRECTORY_SEPARATOR); defined('BASE') OR define('BASE', dirname($dir) . '/');
require_once BASE.'parsecsv.lib.php'; require_once BASE . 'parsecsv.lib.php';