public function testUnregister() { Autoloader::register(); $numOfAutoloaders = count(spl_autoload_functions()); Autoloader::unregister(); $this->assertCount($numOfAutoloaders - 1, spl_autoload_functions()); }