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