Code Duplication    Length = 11-12 lines in 2 locations

src/Tests/RouterTest.php 2 locations

@@ 358-368 (lines=11) @@
355
        ), $this->router->match('/bar/test/do.json', 'GET'));
356
    }
357
    
358
    public function testMatchWithWildcard()
359
    {
360
        $this->router->map('GET', '/a', 'foo_action', 'foo_route');
361
        $this->router->map('GET', '*', 'bar_action', 'bar_route');
362
        
363
        $this->assertEquals(array(
364
            'target' => 'bar_action',
365
            'params' => array(),
366
            'name' => 'bar_route'
367
        ), $this->router->match('/everything', 'GET'));
368
    }
369
    
370
    public function testMatchWithCustomRegexp()
371
    {
@@ 370-381 (lines=12) @@
367
        ), $this->router->match('/everything', 'GET'));
368
    }
369
    
370
    public function testMatchWithCustomRegexp()
371
    {
372
        $this->router->map('GET', '@^/[a-z]*$', 'bar_action', 'bar_route');
373
        
374
        $this->assertEquals(array(
375
            'target' => 'bar_action',
376
            'params' => array(),
377
            'name' => 'bar_route'
378
        ), $this->router->match('/everything', 'GET'));
379
        
380
        $this->assertFalse($this->router->match('/some-other-thing', 'GET'));
381
    }
382
383
    public function testMatchWithUnicodeRegex()
384
    {