示例#1
0
 public function testUnregister()
 {
     Autoloader::register();
     $numOfAutoloaders = count(spl_autoload_functions());
     Autoloader::unregister();
     $this->assertCount($numOfAutoloaders - 1, spl_autoload_functions());
 }
示例#2
0
 /**
  * Test unregister method unregisters autoloader class and method properly.
  */
 public function testUnregisterRegistersAutoloaderProperly()
 {
     $this->setUpAutoloaderWithStrategy();
     $this->registerAutoloaderStrategyMock();
     $this->autoloader->unregister();
     $this->assertAutoloaderUnregistered();
 }