/**
  * Disable registration in all required objects (Config, Router,
  * Notice+Warning+Failure Exceptions).
  * Will be executed after all register methods in this class.
  *
  * @todo disable router
  * @return void
  */
 public final function disableRegistrations()
 {
     Config::disableRegistration();
     SimpleRouter::disableRegistration();
     NoticeException::disableRegistration();
     WarningException::disableRegistration();
     FailureException::disableRegistration();
 }
 public function testDisableRegisteringRouterContent()
 {
     SimpleRouter::disableRegistration();
     SimpleRouter::register("basket", new SimpleRoute("BasketModel", "BasketView", "BasketController"));
     $this->assertTrue($this->router->isRoute("user"));
     $this->assertTrue($this->router->isRoute("photo"));
     $this->assertTrue($this->router->isRoute("target"));
     $this->assertFalse($this->router->isRoute("basket"));
     $this->assertInstanceOf("Phoenix\\Routers\\SimpleRoute", $this->router->getRoute("user"));
     $this->assertInstanceOf("Phoenix\\Routers\\SimpleRoute", $this->router->getRoute("photo"));
     $this->assertInstanceOf("Phoenix\\Routers\\SimpleRoute", $this->router->getRoute("target"));
     $this->assertInstanceOf("Phoenix\\Routers\\SimpleRoute", $this->router->getRoute("basket"));
     $all = $this->router->getAllRoutes();
     unset($all["index"]);
     $this->assertSame(self::$route_table, $all);
 }