tests/Routing/RouteTest.php
/**
     * Tests that routes properly bind to requests and generate parameter values.
     */
Tests that routes properly bind to requests and generate parameter values.
Tests that routes properly bind to requests and generate parameter values .
public function testBinding()
    {
        $request = new Request(array(), array(), array(), array(), array(), array(
            'REQUEST_METHOD' => 'GET',
            'REQUEST_URI' => '/test'
        ));
        $request->bind($this->route);
        $this->assertEquals('test', $this->route->parameter('var'));
    }
public function testBinding ( ) { $ request = new Request ( array ( ) , array ( ) , array ( ) , array ( ) , array ( ) , array ( 'REQUEST_METHOD' => 'GET' , 'REQUEST_URI' => '/test' ) ) ; $ request -> bind ( $ this -> route ) ; $ this -> assertEquals ( 'test' , $ this -> route -> parameter ( 'var' ) ) ; }
Tests that routes properly bind to requests and generate parameter values.
Tests that routes properly bind to requests and generate parameter values .