-
-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathphpunit.php
More file actions
29 lines (22 loc) · 729 Bytes
/
phpunit.php
File metadata and controls
29 lines (22 loc) · 729 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
/**
* This file is part of the Phalcon Migrations.
*
* (c) Phalcon Team <team@phalcon.io>
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
declare(strict_types=1);
error_reporting(E_ALL);
$autoloader = __DIR__ . '/vendor/autoload.php';
if (!file_exists($autoloader)) {
echo "Composer autoloader not found: $autoloader" . PHP_EOL;
echo "Please issue 'composer install' and try again." . PHP_EOL;
exit(1);
}
require_once $autoloader;
$dotenvPath = file_exists(__DIR__ . '/tests/.env') ? __DIR__ . '/tests' : __DIR__;
if (file_exists($dotenvPath . '/.env')) {
Dotenv\Dotenv::createImmutable($dotenvPath)->load();
}