public testCanSetMethodsRouteRespondsToSingly ( ) |
public function testCanSetMethodsRouteRespondsToSingly()
{
$map = $this->app->map('/:controller', 'bogus-callback');
$map->via('get');
$this->assertTrue($map->respondsTo('get'));
$this->assertFalse($map->respondsTo('post'));
$map->via('post');
$this->assertTrue($map->respondsTo('get'));
$this->assertTrue($map->respondsTo('post'));
}