| Total Complexity | 1 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class PhUmlListProcessorsOptionTest extends TestCase |
||
| 11 | { |
||
| 12 | /** @test */ |
||
| 13 | function it_displays_processors_information_if_option_l_is_provided() |
||
| 14 | { |
||
| 15 | $processors = <<<OUTPUT |
||
| 16 | phUML Version 0.2 (Jakob Westhoff <[email protected]>) |
||
| 17 | The following processors are available: |
||
| 18 | |||
| 19 | * Processor: Graphviz |
||
| 20 | - Options: |
||
| 21 | style (string): |
||
| 22 | Style to use for the dot creation |
||
| 23 | |||
| 24 | createAssociations (boolean): |
||
| 25 | Create connections between classes that include each other. (This |
||
| 26 | information can only be extracted if it is present in docblock comments) |
||
| 27 | |||
| 28 | * Processor: Neato |
||
| 29 | - Options: |
||
| 30 | This processor does not have any options. |
||
| 31 | |||
| 32 | * Processor: Dot |
||
| 33 | - Options: |
||
| 34 | This processor does not have any options. |
||
| 35 | |||
| 36 | * Processor: Statistics |
||
| 37 | - Options: |
||
| 38 | This processor does not have any options. |
||
| 39 | |||
| 40 | |||
| 41 | OUTPUT; |
||
| 42 | |||
| 43 | passthru(sprintf('php %s -l', __DIR__ . '/../../src/app/phuml')); |
||
| 44 | |||
| 45 | $this->expectOutputString($processors); |
||
| 46 | } |
||
| 48 |