protected function setUp() { parent::setUp(); $this->diContainer = new SystemContainer(); Application::getInstance()->setDiContainer($this->diContainer); if ($this->initDiHelper) { DiHelper::init(); } require realpath(__DIR__ . '/../../config.php'); }
public function testGetFactory() { DiHelper::init(); $helper = new DiHelper(); $this->assertInstanceOf(Factory::class, $helper->getFactory(), 'Invalid return value for DiHelper::getFactory()'); }