Code Duplication    Length = 11-12 lines in 2 locations

test/Exercise/HelloWorldTest.php 1 location

@@ 17-27 (lines=11) @@
14
 */
15
class HelloWorldTest extends PHPUnit_Framework_TestCase
16
{
17
    public function testHelloWorldExercise()
18
    {
19
        $e = new HelloWorld;
20
        $this->assertEquals('Hello World', $e->getName());
21
        $this->assertEquals('Simple Hello World exercise', $e->getDescription());
22
        $this->assertEquals([], $e->getArgs());
23
24
        $this->assertInstanceOf(SolutionInterface::class, $e->getSolution());
25
        $this->assertFileExists(realpath($e->getProblem()));
26
        $this->assertNull($e->tearDown());
27
    }
28
}
29

test/Exercise/DependencyHeavenTest.php 1 location

@@ 30-41 (lines=12) @@
27
        $this->faker = Factory::create('Fr_fr');
28
    }
29
30
    public function testDependencyHeavenExercise()
31
    {
32
        $e = new DependencyHeaven($this->faker);
33
34
        $this->assertEquals('Dependency Heaven', $e->getName());
35
        $this->assertEquals('An introduction to Composer dependency management', $e->getDescription());
36
37
        $this->assertInstanceOf(SolutionInterface::class, $e->getSolution());
38
        $this->assertFileExists(realpath($e->getSolution()->getEntryPoint()));
39
        $this->assertFileExists(realpath($e->getProblem()));
40
        $this->assertNull($e->tearDown());
41
    }
42
43
    public function testGetRequiredPackages()
44
    {