-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtestit
More file actions
executable file
·33 lines (29 loc) · 810 Bytes
/
testit
File metadata and controls
executable file
·33 lines (29 loc) · 810 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
30
31
32
33
#!/usr/bin/php -q
<?php
require_once 'vendor/autoload.php';
use Simples\Test\App;
$app = new App([
'root' => __DIR__,
'environment' => env('TEST_ENVIRONMENT'),
'domain' => env('TEST_DOMAIN'),
'url' => env('TEST_URL'),
'tests' => config('test.tests'),
'defaults' => [
'Headers' => [
'Origin' => env('TEST_ORIGIN')
],
],
'cookies' => []
]);
try {
/*
* run the App
*/
$app->run($argv);
} catch (Throwable $error) {
echo PHP_EOL, 'ERROR ~> ', PHP_EOL;
echo ' Message .: ', $error->getMessage(), PHP_EOL;
echo ' File ....: ', $error->getFile(), PHP_EOL;
echo ' Line ....: ', $error->getLine(), PHP_EOL;
echo '--------------------------------------------', PHP_EOL, $error->getTraceAsString(), PHP_EOL;
}