/**
  * 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 testDisableRegistration()
 {
     WarningException::disableRegistration();
     /* modify single exception */
     $this->assertFalse(WarningException::set(5, 15));
     $this->assertSame(1005, WarningException::get(5));
     /* modify array exceptions */
     $modify = array(1 => 101, 2 => 102, 3 => 103, 4 => 104, 5 => 105);
     $expected = array(1 => 1001, 2 => 1002, 3 => 1003, 4 => 1004, 5 => 1005);
     $this->assertFalse(WarningException::setArray($modify));
     $actual = WarningException::getAll();
     $this->assertSame(array_diff($expected, $actual), array_diff($actual, $expected));
     $this->assertSame(1005, WarningException::get(5));
 }