public function testRequestMethodRouting()
 {
     $getMock = $this->getMock('stdClass', array('callback'));
     $getMock->expects($this->exactly(2))->method('callback');
     $postMock = $this->getMock('stdClass', array('callback'));
     $postMock->expects($this->exactly(1))->method('callback');
     $putMock = $this->getMock('stdClass', array('callback'));
     $putMock->expects($this->exactly(1))->method('callback');
     $deleteMock = $this->getMock('stdClass', array('callback'));
     $deleteMock->expects($this->exactly(1))->method('callback');
     $r = new Router();
     $r->addGet('/foo', array(), array($getMock, 'callback'));
     $r->addPost('/foo', array(), array($postMock, 'callback'));
     $r->addPut('/foo', array(), array($putMock, 'callback'));
     $r->addDelete('/foo', array(), array($deleteMock, 'callback'));
     $r->route('/foo');
     $r->routeMethod($r::GET, '/foo');
     $r->routeMethod($r::POST, '/foo');
     $r->routeMethod($r::PUT, '/foo');
     $r->routeMethod($r::DELETE, '/foo');
 }