|
@@ 31-42 (lines=12) @@
|
| 28 |
|
} |
| 29 |
|
} |
| 30 |
|
|
| 31 |
|
public function testOnProcessStarted() |
| 32 |
|
{ |
| 33 |
|
$output = new UnformattedOutputStub(); |
| 34 |
|
$printer = new DebugPrinter($output); |
| 35 |
|
$process = new StubbedParaunitProcess(); |
| 36 |
|
|
| 37 |
|
$printer->onProcessStarted(new ProcessEvent($process)); |
| 38 |
|
|
| 39 |
|
$this->assertContains('PROCESS STARTED', $output->getOutput()); |
| 40 |
|
$this->assertContains($process->getFilename(), $output->getOutput()); |
| 41 |
|
$this->assertContains($process->getCommandLine(), $output->getOutput()); |
| 42 |
|
} |
| 43 |
|
|
| 44 |
|
public function testOnProcessTerminated() |
| 45 |
|
{ |
|
@@ 44-56 (lines=13) @@
|
| 41 |
|
$this->assertContains($process->getCommandLine(), $output->getOutput()); |
| 42 |
|
} |
| 43 |
|
|
| 44 |
|
public function testOnProcessTerminated() |
| 45 |
|
{ |
| 46 |
|
$output = new UnformattedOutputStub(); |
| 47 |
|
$printer = new DebugPrinter($output); |
| 48 |
|
$process = new StubbedParaunitProcess(); |
| 49 |
|
$process->setTestClassName('Some\Class\Name'); |
| 50 |
|
|
| 51 |
|
$printer->onProcessTerminated(new ProcessEvent($process)); |
| 52 |
|
|
| 53 |
|
$this->assertContains('PROCESS TERMINATED', $output->getOutput()); |
| 54 |
|
$this->assertContains($process->getFilename(), $output->getOutput()); |
| 55 |
|
$this->assertContains($process->getTestClassName(), $output->getOutput()); |
| 56 |
|
} |
| 57 |
|
|
| 58 |
|
public function testOnProcessParsingCompleted() |
| 59 |
|
{ |