Code Duplication    Length = 7-7 lines in 2 locations

tests/src/Parsers/DynamicTest.php 1 location

@@ 64-70 (lines=7) @@
61
        static::assertEquals('shop/category_lorem/ipsum?company=dolo%26rem', $this->object->assemble($params));
62
    }
63
64
    public function testMatch()
65
    {
66
        $map = 'shop/category_:url/:name';
67
        $this->object->setMap($map);
68
        static::assertFalse($this->object->match('shop/category_cast/'));
69
        static::assertTrue($this->object->match('shop/category_cars/honda'));
70
    }
71
}
72

tests/src/Parsers/LiteralTest.php 1 location

@@ 41-47 (lines=7) @@
38
        static::assertEquals('shop/cart?url=lorem&name=ipsum&company=dolo%26rem', $this->object->assemble($params));
39
    }
40
41
    public function testMatch()
42
    {
43
        $map = 'shop/cart';
44
        $this->object->setMap($map);
45
        static::assertFalse($this->object->match('shop/category_cast/'));
46
        static::assertTrue($this->object->match('shop/cart'));
47
    }
48
}
49