Since: 3.0.0
Author: Henry Ruhs
Inheritance: extends ViewAbstract
Exemplo n.º 1
0
 /**
  * testRender
  *
  * @since 3.0.0
  *
  * @param array $registryArray
  * @param string $expect
  *
  * @dataProvider providerRender
  */
 public function testRender($registryArray = [], $expect = null)
 {
     /* setup */
     $this->_registry->init($registryArray);
     $consoleForm = new View\ConsoleForm($this->_registry, $this->_language);
     /* actual */
     $actual = $consoleForm->render();
     /* compare */
     $this->assertEquals($expect, $actual);
 }
Exemplo n.º 2
0
 /**
  * console form
  *
  * @since 3.0.0
  *
  * @return string
  */
 public static function consoleForm()
 {
     $consoleForm = new View\ConsoleForm(Registry::getInstance(), Language::getInstance());
     return $consoleForm->render();
 }