Exemplo n.º 1
0
 /**
  * Method to test addFieldNamespace().
  *
  * @return void
  *
  * @covers Windwalker\Form\Form::addFieldNamespace
  */
 public function testAddFieldNamespace()
 {
     FieldHelper::reset();
     $form = new Form();
     $form->addFieldNamespace('TestNS');
     $ns = FieldHelper::getNamespaces();
     $ns = iterator_to_array($ns);
     $this->assertEquals('TestNS', $ns[0]);
 }