/** * Test the extension register function from the DI class * * @return void * @author Dan Cox */ public function test_extensionRegistrar() { $di = new DI(CONFIG); $di->build()->load('core'); $this->assertInstanceOf('Wasp\\DI\\ExtensionRegister', $di->extensions()); }
/** * Setup test environment * * @return void * @author Dan Cox */ public function setUp() { $di = new DI(); $di->setDirectory(__DIR__); $di->build()->load('service'); }