Code Duplication    Length = 19-19 lines in 2 locations

tests/PhUml/PhUmlIncompatibleProcessorsTest.php 2 locations

@@ 16-34 (lines=19) @@
13
     * @test
14
     * @dataProvider incompatibleDotAndNeatoCombinations
15
     */
16
    function it_does_not_allow_dot_and_neato_as_initial_processors($firstProcessor, $secondProcessor)
17
    {
18
        $incompatibleProcessors = <<<MESSAGE
19
phUML Version 0.2 (Jakob Westhoff <[email protected]>)
20
A fatal error occured during the process:
21
To processors in the chain are incompatible. The first processor's output is "application/phuml-structure". The next Processor in the queue does only support the following input types: text/dot.
22
23
MESSAGE;
24
25
        passthru(sprintf(
26
            'php %s %s -%s -%s willnotbecreated.png',
27
            __DIR__ . '/../../src/app/phuml',
28
            __DIR__ . '/../../src',
29
            $firstProcessor,
30
            $secondProcessor
31
        ));
32
33
        $this->expectOutputString($incompatibleProcessors);
34
    }
35
36
    function incompatibleDotAndNeatoCombinations()
37
    {
@@ 52-70 (lines=19) @@
49
     * @test
50
     * @dataProvider incompatibleStatisticsCombinations
51
     */
52
    function it_does_not_allow_statistics_as_initial_processor($firstProcessor, $secondProcessor)
53
    {
54
        $incompatibleProcessors = <<<MESSAGE
55
phUML Version 0.2 (Jakob Westhoff <[email protected]>)
56
A fatal error occured during the process:
57
To processors in the chain are incompatible. The first processor's output is "text/plain". The next Processor in the queue does only support the following input types: text/dot.
58
59
MESSAGE;
60
61
        passthru(sprintf(
62
            'php %s %s -%s -%s willnotbecreated.png',
63
            __DIR__ . '/../../src/app/phuml',
64
            __DIR__ . '/../../src',
65
            $firstProcessor,
66
            $secondProcessor
67
        ));
68
69
        $this->expectOutputString($incompatibleProcessors);
70
    }
71
72
    function incompatibleStatisticsCombinations()
73
    {