/** * Application Constructor */ public function __construct() { $dependency = new DiExtension(__DIR__ . '/DependencyInjection/config/'); try { $this->setDic($dependency->getContainer()); } catch (\Exception $e) { return $e->getMessage(); } $this->dispatcher = $this->getDic()->get('revpdflib.event_dispatcher'); }
/** * @covers RevPDFLib\DependencyInjection\DiExtension::getContainer * @todo Implement testGetContainer(). */ public function testGetContainer() { $this->assertTrue($this->object->getContainer() instanceof \Symfony\Component\DependencyInjection\ContainerBuilder); }