Code Duplication    Length = 16-16 lines in 2 locations

test/Exercise/HelloSomeoneTest.php 1 location

@@ 15-30 (lines=16) @@
12
 * Class HelloSomeoneTest
13
 * @package PhpSchool\LearnYouPhpTest\Exercise
14
 */
15
class HelloSomeoneTest extends PHPUnit_Framework_TestCase
16
{
17
    public function testHelloWorldExercise()
18
    {
19
        $e = new HelloSomeone();
20
        $this->assertEquals('Hello someone!', $e->getName());
21
        $this->assertEquals('Hello world exercise with name', $e->getDescription());
22
        $this->assertEquals(ExerciseType::CLI, $e->getType());
23
24
        $this->assertEquals(['Sarra'], $e->getArgs());
25
26
        $this->assertInstanceOf(SolutionInterface::class, $e->getSolution());
27
        $this->assertFileExists(realpath($e->getProblem()));
28
        $this->assertNull($e->tearDown());
29
    }
30
}
31

test/Exercise/HelloWorldTest.php 1 location

@@ 15-30 (lines=16) @@
12
 * Class HelloWorldTest
13
 * @package PhpSchool\LearnYouPhpTest\Exercise
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(ExerciseType::CLI, $e->getType());
23
24
        $this->assertEquals([], $e->getArgs());
25
26
        $this->assertInstanceOf(SolutionInterface::class, $e->getSolution());
27
        $this->assertFileExists(realpath($e->getProblem()));
28
        $this->assertNull($e->tearDown());
29
    }
30
}
31