@@ -4,19 +4,19 @@ |
||
4 | 4 | |
5 | 5 | require_once __DIR__.'/MicroTest.php'; |
6 | 6 | |
7 | -test('example', function () { |
|
7 | +test('example', function() { |
|
8 | 8 | $this->assert(true); |
9 | 9 | }); |
10 | 10 | |
11 | -test('can install node dependencies', function () { |
|
12 | - $this->assert(! file_exists(BASE_PATH.'/node_modules'), 'Node modules already exist'); |
|
11 | +test('can install node dependencies', function() { |
|
12 | + $this->assert(!file_exists(BASE_PATH.'/node_modules'), 'Node modules already exist'); |
|
13 | 13 | |
14 | 14 | shell_exec('cd '.BASE_PATH.' && npm install'); |
15 | 15 | |
16 | 16 | $this->assert(file_exists(BASE_PATH.'/node_modules'), 'Node modules do not exist'); |
17 | 17 | }); |
18 | 18 | |
19 | -test('can build assets using laravel mix', function () { |
|
19 | +test('can build assets using laravel mix', function() { |
|
20 | 20 | $output = shell_exec('cd '.BASE_PATH.' && npm run dev'); |
21 | 21 | |
22 | 22 | $this->assert(file_exists(BASE_PATH.'/_media/app.css'), 'CSS file does not exist'); |
@@ -4,26 +4,26 @@ |
||
4 | 4 | |
5 | 5 | require_once __DIR__.'/MicroTest.php'; |
6 | 6 | |
7 | -test('example', function () { |
|
7 | +test('example', function() { |
|
8 | 8 | $this->assert(true); |
9 | 9 | }); |
10 | 10 | |
11 | -test('can install composer dependencies', function () { |
|
12 | - $this->assert(! file_exists(BASE_PATH.'/vendor/autoload.php'), 'Autoloader already exists'); |
|
11 | +test('can install composer dependencies', function() { |
|
12 | + $this->assert(!file_exists(BASE_PATH.'/vendor/autoload.php'), 'Autoloader already exists'); |
|
13 | 13 | |
14 | 14 | shell_exec('cd '.BASE_PATH.' && composer install'); |
15 | 15 | |
16 | 16 | $this->assert(file_exists(BASE_PATH.'/vendor/autoload.php'), 'Autoloader does not exist'); |
17 | 17 | }); |
18 | 18 | |
19 | -test('can run the HydeCLI binary', function () { |
|
19 | +test('can run the HydeCLI binary', function() { |
|
20 | 20 | $output = shell_exec('cd '.BASE_PATH.' && php hyde --no-ansi'); |
21 | 21 | $this->assert(str_contains($output, 'USAGE: hyde <command> [options] [arguments]'), |
22 | 22 | 'HydeCLI output does not contain "USAGE: hyde <command> [options] [arguments]"' |
23 | 23 | ); |
24 | 24 | }); |
25 | 25 | |
26 | -test('can build the static site', function () { |
|
26 | +test('can build the static site', function() { |
|
27 | 27 | $output = shell_exec('cd '.BASE_PATH.' && php hyde build --no-ansi'); |
28 | 28 | |
29 | 29 | $this->assert(str_contains($output, 'Building your static site!'), |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | |
37 | 37 | public static function getInstance(): self |
38 | 38 | { |
39 | - if (! isset(self::$instance)) { |
|
39 | + if (!isset(self::$instance)) { |
|
40 | 40 | self::$instance = new self(); |
41 | 41 | } |
42 | 42 | |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | /** @throws \Exception */ |
54 | 54 | public function assert(bool $condition, string $message = null): void |
55 | 55 | { |
56 | - if (! $condition) { |
|
56 | + if (!$condition) { |
|
57 | 57 | throw new Exception($message ?? 'Assertion failed'); |
58 | 58 | } |
59 | 59 | } |