Code Duplication    Length = 8-9 lines in 2 locations

test/Exercise/ConcernedAboutSeparationTest.php 2 locations

@@ 104-112 (lines=9) @@
101
        $this->assertFileNotExists($path);
102
    }
103
104
    public function testCheckReturnsFailureIfNoIncludeFoundInSolution()
105
    {
106
        $e = new ConcernedAboutSeparation($this->filesystem, $this->faker, $this->parser);
107
        $failure = $e->check(__DIR__ . '/../res/concerned-about-separation/no-include.php');
108
        
109
        $this->assertInstanceOf(Failure::class, $failure);
110
        $this->assertEquals('No require statement found', $failure->getReason());
111
        $this->assertEquals('Concerned about Separation?', $failure->getCheckName());
112
    }
113
114
    public function testCheckReturnsSuccessIfIncludeFound()
115
    {
@@ 114-121 (lines=8) @@
111
        $this->assertEquals('Concerned about Separation?', $failure->getCheckName());
112
    }
113
114
    public function testCheckReturnsSuccessIfIncludeFound()
115
    {
116
        $e = new ConcernedAboutSeparation($this->filesystem, $this->faker, $this->parser);
117
        $success = $e->check(__DIR__ . '/../res/concerned-about-separation/include.php');
118
119
        $this->assertInstanceOf(Success::class, $success);
120
        $this->assertEquals('Concerned about Separation?', $success->getCheckName());
121
    }
122
}
123