Example #1
0
 public function testSetGetRouter()
 {
     $router = new Router\Rewrite();
     $this->_controller->setRouter($router);
     $this->assertTrue($router === $this->_controller->getRouter());
     $this->_controller->resetInstance();
     $this->_controller->setRouter('\\Zend\\Controller\\Router\\Rewrite');
     $router = $this->_controller->getRouter();
     $this->assertTrue($router instanceof Router\Rewrite);
 }