/** * @return Application */ public function testAppHasDi() { $kernel = new TestKernel($this->env); $app = new \Anthill\Phalcon\KernelModule\Cli\Application($kernel); $app->doRun(new StringInput(''), new NullOutput()); $app->setAutoExit(false); $this->assertInstanceOf(DiInterface::class, $app->getDI()); return $app; }