Code Duplication    Length = 9-12 lines in 2 locations

test/units/Rule.php 2 locations

@@ 21-29 (lines=9) @@
18
 */
19
class Rule extends atoum
20
{
21
    public function testAllowAllAsDefault()
22
    {
23
        $this
24
            ->given($sut = new SUT(''))
25
            ->when($match = $sut->match('/some/url'))
26
            ->then
27
                ->boolean($match)
28
                    ->isTrue();
29
    }
30
31
    public function testAllow()
32
    {
@@ 31-42 (lines=12) @@
28
                    ->isTrue();
29
    }
30
31
    public function testAllow()
32
    {
33
        $this
34
            ->given(
35
                $sut = new SUT(''),
36
                $sut->allow('/foo/bar')
37
            )
38
            ->when($match = $sut->match('/foo/bar'))
39
            ->then
40
                ->boolean($match)
41
                    ->isTrue();
42
    }
43
44
    public function testDisallow()
45
    {