Code Duplication    Length = 11-14 lines in 2 locations

test/units/Parser.php 2 locations

@@ 22-32 (lines=11) @@
19
 */
20
class Parser extends atoum
21
{
22
    public function testEmptyStringContent()
23
    {
24
        $this
25
            ->given($rules = SUT::parse(""))
26
            ->when($rule = $rules->get(LUT\Rules::DEFAULT_UA))
27
            ->then
28
                ->object($rules)
29
                    ->isInstanceOf('Bee4\RobotsTxt\Rules')
30
                ->object($rule)
31
                    ->isInstanceOf('Bee4\RobotsTxt\Rule');
32
    }
33
34
    public function testEmptyContentInstance()
35
    {
@@ 34-47 (lines=14) @@
31
                    ->isInstanceOf('Bee4\RobotsTxt\Rule');
32
    }
33
34
    public function testEmptyContentInstance()
35
    {
36
        $this
37
            ->given(
38
                $content = new LUT\Content(""),
39
                $rules = SUT::parse($content)
40
            )
41
            ->when($rule = $rules->get(LUT\Rules::DEFAULT_UA))
42
            ->then
43
                ->object($rules)
44
                    ->isInstanceOf('Bee4\RobotsTxt\Rules')
45
                ->object($rule)
46
                    ->isInstanceOf('Bee4\RobotsTxt\Rule');
47
    }
48
49
    public function testInvalidContentException()
50
    {