-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtestbench
More file actions
executable file
·26 lines (20 loc) · 699 Bytes
/
testbench
File metadata and controls
executable file
·26 lines (20 loc) · 699 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
#!/usr/bin/env php
<?php
define('TESTBENCH_WORKING_PATH', $workingPath = getcwd());
if (file_exists(__DIR__.'/vendor/autoload.php')) {
// Development environment.
require __DIR__.'/vendor/autoload.php';
} else {
// Installation environment.
require __DIR__.'/../../autoload.php';
}
$config = [
'env' => ['APP_KEY="AckfSECXIvnK5r28GVIWUAxmbBSjTsmF"', 'DB_CONNECTION="testing"'],
'providers' => [],
'dont-discover' => [],
];
if (file_exists("{$workingPath}/testbench.yaml")) {
$config = Symfony\Component\Yaml\Yaml::parseFile("{$workingPath}/testbench.yaml");
}
$commander = new Orchestra\Testbench\Console\Commander($config, $workingPath);
$commander->handle();