| Conditions | 1 |
| Paths | 1 |
| Total Lines | 21 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 4 | ||
| Bugs | 1 | Features | 2 |
| 1 | <?php |
||
| 12 | public function testOutput() |
||
| 13 | { |
||
| 14 | $diFileWriterMock = $this->getMockBuilder(DiFileWriter::class) |
||
| 15 | ->setMethods(['save']) |
||
| 16 | ->getMock(); |
||
| 17 | $diFileWriterMock->loadXml('<config />'); |
||
| 18 | |||
| 19 | $command = $this->getMock(MakeCommandCommand::class, ['createDiFileWriter']); |
||
| 20 | $command |
||
| 21 | ->expects($this->once()) |
||
| 22 | ->method('createDiFileWriter') |
||
| 23 | ->will($this->returnValue($diFileWriterMock)); |
||
| 24 | |||
| 25 | $commandTester = $this->createCommandTester($command); |
||
| 26 | $command->setCurrentModuleName('N98_Dummy'); |
||
| 27 | |||
| 28 | $writerMock = $this->mockWriterFileCWriteFileAssertion('bazCommand'); |
||
| 29 | |||
| 30 | $command->setCurrentModuleDirectoryWriter($writerMock); |
||
| 31 | $commandTester->execute(['classpath' => 'foo.bar.baz']); |
||
| 32 | } |
||
| 33 | } |
||
| 34 |