Test Failed
Push — graphviz-refactoring ( 3f1b14 )
by Luis
02:18
created

PhUmlListProcessorsOptionTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 36
rs 10
c 0
b 0
f 0
wmc 1
1
<?php
2
/**
3
 * PHP version 7.1
4
 *
5
 * This source file is subject to the license that is bundled with this package in the file LICENSE.
6
 */
7
8
use PHPUnit\Framework\TestCase;
9
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
    }
47
}
48