Conditions | 1 |
Paths | 1 |
Total Lines | 21 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | public function testExecute() |
||
14 | { |
||
15 | $exitCode = $this->tester->run( |
||
16 | array( |
||
17 | 'command' => SyncDbCommand::COMMAND_NAME |
||
18 | ), |
||
19 | array( |
||
20 | 'verbosity' => OutputInterface::VERBOSITY_DEBUG |
||
21 | ) |
||
22 | ); |
||
23 | |||
24 | $display = trim($this->tester->getDisplay()); |
||
25 | |||
26 | $this->assertEquals(0, $exitCode, $display); |
||
27 | |||
28 | $this->assertRegExp( |
||
29 | '/Finished in [0-9\.]+ seconds!/', |
||
30 | $display, |
||
31 | 'Wrong output of sync:db command detected.' |
||
32 | ); |
||
33 | } |
||
34 | |||
44 |