public function __get($name) { return $this->_view->getData($name); }
public function testArrays() { $view = new phFormView('arrayTestView', new phForm('test', 'arrayTestView')); $this->assertTrue($view->getData('ids') instanceof phArrayFormDataItem, 'The ids data is accessible and is an instance of phArrayFormDataItem'); $this->assertEquals(sizeof($view->getData('ids')), 5, 'There are 5 elements in ids'); }