public function restoration()
{
$callbackStub = function () {
};
$this->assertTrue(spl_autoload_register($callbackStub));
$restorer = new AutoloadRestorer();
$this->assertTrue(in_array($callbackStub, spl_autoload_functions(), true));
$this->assertTrue(spl_autoload_unregister($callbackStub));
$this->assertFalse(in_array($callbackStub, spl_autoload_functions(), true));
$restorer->restore();
$this->assertTrue(in_array($callbackStub, spl_autoload_functions(), true));
}