/** * Method to test addValidatorNamespace(). * * @return void * * @covers Windwalker\Form\Form::addValidatorNamespace */ public function testAddValidatorNamespace() { ValidatorHelper::reset(); $form = new Form(); $form->addValidatorNamespace('TestNS'); $ns = ValidatorHelper::getNamespaces(); $ns = iterator_to_array($ns); $this->assertEquals('TestNS', $ns[0]); }
/** * Tears down the fixture, for example, closes a network connection. * This method is called after a test is executed. * * @return void */ protected function tearDown() { ValidatorHelper::reset(); }