/** * Tests the getContainer and setContainer methods to see whether the * provided Cilex Application is persisted. */ public function testContainer() { $app = new \Cilex\Application('Test'); $this->assertNull($this->fixture->getContainer()); $this->fixture->setContainer($app); $this->assertSame($app, $this->fixture->getContainer()); }
/** * Tests the getContainer method. */ public function testContainer() { $app = new \Cilex\Application('Test'); $app->command($this->fixture); $this->assertSame($app, $this->fixture->getContainer()); }