@@ -7,12 +7,12 @@ |
||
7 | 7 | |
8 | 8 | class ProcessHandler |
9 | 9 | { |
10 | - /** |
|
11 | - * Run the Symfony fromShellCommandLine |
|
12 | - * |
|
13 | - * @param string $command |
|
14 | - * @return boolean |
|
15 | - */ |
|
10 | + /** |
|
11 | + * Run the Symfony fromShellCommandLine |
|
12 | + * |
|
13 | + * @param string $command |
|
14 | + * @return boolean |
|
15 | + */ |
|
16 | 16 | public function run(string $command): bool |
17 | 17 | { |
18 | 18 | $process = Process::fromShellCommandline($command, null, null, null, 999.00); |
@@ -50,9 +50,9 @@ discard block |
||
50 | 50 | $this->assertFalse($this->database->backup()); |
51 | 51 | } |
52 | 52 | |
53 | - /** |
|
54 | - * @test |
|
55 | - */ |
|
53 | + /** |
|
54 | + * @test |
|
55 | + */ |
|
56 | 56 | public function testRestoreSuccess() |
57 | 57 | { |
58 | 58 | $this->processHandlerMock->method('run')->willReturn(true); |
@@ -60,9 +60,9 @@ discard block |
||
60 | 60 | $this->assertTrue($this->database->restore($this->testBackupFile)); |
61 | 61 | } |
62 | 62 | |
63 | - /** |
|
64 | - * @test |
|
65 | - */ |
|
63 | + /** |
|
64 | + * @test |
|
65 | + */ |
|
66 | 66 | public function testRestoreFailure() |
67 | 67 | { |
68 | 68 | $this->processHandlerMock->method('run')->willReturn(false); |
@@ -15,6 +15,6 @@ |
||
15 | 15 | $this->storage = $this->getMockBuilder('EDouna\LaravelDBBackup\Database\Storage')->getMock(); |
16 | 16 | $this->processHandlerMock = $this->getMockBuilder('EDouna\LaravelDBBackup\ProcessHandler')->getMock(); |
17 | 17 | |
18 | - $this->database = new Database($this->storage); |
|
18 | + $this->database = new Database($this->storage); |
|
19 | 19 | } |
20 | 20 | } |