/** * @runInSeparateProcess */ public function testLocalloadAutoload() { $this->tearDown(); $this->localExtensionInstall(); $app = $this->getApp(); require_once PHPUNIT_WEBROOT . '/extensions/vendor/autoload.php'; $koala = new \Bolt\Extensions\TestVendor\TestExt\GumLeaves(); $this->assertSame('Koala Power!', $koala->getDropBear()); @unlink($app['resources']->getPath('extensions/composer.json')); @unlink($app['resources']->getPath('cache/.local.autoload.built')); }
/** * @runInSeparateProcess */ public function testLocalloadAutoload() { $app = $this->makeApp(); $app['resources']->setPath('extensions', __DIR__ . '/resources'); $app->initialize(); require_once __DIR__ . '/resources/vendor/autoload.php'; $koala = new \Bolt\Extensions\TestVendor\TestExt\GumLeaves(); $this->assertSame('Koala Power!', $koala->getDropBear()); @unlink($app['resources']->getPath('extensions/composer.json')); @unlink($app['resources']->getPath('cache/.local.autoload.built')); }