tests/Routing/RouterTest.php
/**
     * Tests the generation and storage of middleware via groups.
     */
Tests the generation and storage of middleware via groups.
Tests the generation and storage of middleware via groups .
public function testMiddlewareGroup()
    {
        $group = $this->router->createMiddlewareGroup('TestMiddleware', function() {});
        $this->assertEquals(array('TestMiddleware'), $group->middleware());
    }
public function testMiddlewareGroup ( ) { $ group = $ this -> router -> createMiddlewareGroup ( 'TestMiddleware' , function ( ) { } ) ; $ this -> assertEquals ( array ( 'TestMiddleware' ) , $ group -> middleware ( ) ) ; }
Tests the generation and storage of middleware via groups.
Tests the generation and storage of middleware via groups .