예제 #1
0
 /**
  * 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());
 }
예제 #2
0
 /**
  * Tests the getContainer method.
  */
 public function testContainer()
 {
     $app = new \Cilex\Application('Test');
     $app->command($this->fixture);
     $this->assertSame($app, $this->fixture->getContainer());
 }