@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | error_reporting(E_ALL); |
| 4 | -$autoloader = __DIR__.DIRECTORY_SEPARATOR.'vendor'.DIRECTORY_SEPARATOR.'autoload.php'; |
|
| 5 | -if (!file_exists($autoloader)){ |
|
| 6 | - echo 'Composer autoloader not found:'.$autoloader.PHP_EOL; |
|
| 7 | - echo 'Please issue \'composer install\' and try again.'.PHP_EOL; |
|
| 4 | +$autoloader = __DIR__ . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php'; |
|
| 5 | +if (!file_exists($autoloader)) { |
|
| 6 | + echo 'Composer autoloader not found:' . $autoloader . PHP_EOL; |
|
| 7 | + echo 'Please issue \'composer install\' and try again.' . PHP_EOL; |
|
| 8 | 8 | exit(1); |
| 9 | 9 | } |
| 10 | 10 | require $autoloader; |
| 11 | 11 | \ No newline at end of file |
@@ -9,8 +9,8 @@ |
||
| 9 | 9 | public function testInitialize(): void |
| 10 | 10 | { |
| 11 | 11 | $testStub = $this->getMockBuilder('DispatchController') |
| 12 | - ->disableOriginalConstructor() |
|
| 13 | - ->getMock(); |
|
| 12 | + ->disableOriginalConstructor() |
|
| 13 | + ->getMock(); |
|
| 14 | 14 | |
| 15 | 15 | $isCallable = is_callable('Initialize', true, $testStub); |
| 16 | 16 | $this->assertEquals(true, $isCallable); |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | { |
| 12 | 12 | $testStub = $this->createMock(App::class); |
| 13 | 13 | $testStub->method('loadGrams') |
| 14 | - ->willReturn([]); |
|
| 14 | + ->willReturn([]); |
|
| 15 | 15 | $this->assertEquals([], $testStub->loadGrams()); |
| 16 | 16 | } |
| 17 | 17 | } |