コード例 #1
0
 /**
  * @test
  */
 public function acceptObjectStorageAsObjects()
 {
     $objects = new ObjectStorage();
     $this->controller->_set('objects', $objects);
     $this->controller->indexAction();
     $this->assertSame($objects, $this->controller->_get('objects'));
 }
コード例 #2
0
 public function testIndexAction()
 {
     $viewModel = $this->controller->indexAction();
     $this->assertInstanceOf('Zend\\View\\Model\\ViewModel', $viewModel);
     $this->assertTrue($viewModel->terminate());
 }