tests/Routing/RouterTest.php
/**
     * Tests the inheritance ability of groups to build upon the properties of parent groups.
     */
Tests the inheritance ability of groups to build upon the properties of parent groups.
Tests the inheritance ability of groups to build upon the properties of parent groups .
public function testGroupInheritance()
    {
        $group = $this->router->createGroup(function() {
            $this->router->createPrefix('/first');
            $group = $this->router->createGroup(function() {
                $this->router->createPrefix('/second');
                $get = $this->router->createGetRoute('/', array($this, 'closure'));
                $this->assertEquals('/first/second/', $get->uri());
            });
        });
    }
public function testGroupInheritance ( ) { $ group = $ this -> router -> createGroup ( function ( ) { $ this -> router -> createPrefix ( '/first' ) ; $ group = $ this -> router -> createGroup ( function ( ) { $ this -> router -> createPrefix ( '/second' ) ; $ get = $ this -> router -> createGetRoute ( '/' , array ( $ this , 'closure' ) ) ; $ this -> assertEquals ( '/first/second/' , $ get -> uri ( ) ) ; } ) ; } ) ; }
Tests the inheritance ability of groups to build upon the properties of parent groups.
Tests the inheritance ability of groups to build upon the properties of parent groups .