public function testActivateDeactivate() { $aspectLoader = new AspectLoader(); $autoLoaders = spl_autoload_functions(); $aspectLoader->activate(); $this->assertTrue(count($autoLoaders) < count(spl_autoload_functions())); $aspectLoader->deactivate(); $this->assertTrue(count($autoLoaders) == count(spl_autoload_functions())); }
<?php require_once dirname(__DIR__) . '/vendor/autoload.php'; require_once dirname(__DIR__) . '/src/Guise/AspectLoader.php'; \Guise\AspectLoader::getLoader();