С версии: 3.0.0
Автор: Henry Ruhs
Наследование: extends ViewAbstract, implements ViewInterface
Пример #1
0
 /**
  * testRender
  *
  * @since 3.0.0
  *
  * @param array $registryArray
  * @param integer $extraId
  * @param array $expectArray
  *
  * @dataProvider providerRender
  */
 public function testRender($registryArray = [], $extraId = null, $expectArray = [])
 {
     /* setup */
     $this->_registry->init($registryArray);
     $extraForm = new Admin\View\ExtraForm($this->_registry, $this->_language);
     /* actual */
     $actual = $extraForm->render($extraId);
     /* compare */
     $this->assertStringStartsWith($expectArray['start'], $actual);
     $this->assertStringEndsWith($expectArray['end'], $actual);
 }