Exemplo n.º 1
0
 public function testIsValidWithParameters()
 {
     $this->markTestSkipped('is() method should not try to implement its own plugin loader - refactor this');
     $this->assertTrue(Validator\ValidatorChain::is(5, 'Between', array(1, 10)));
     $this->assertTrue(Validator\ValidatorChain::is(5, 'Between', array('min' => 1, 'max' => 10)));
 }
Exemplo n.º 2
0
 /**
  * Ensures that if we specify a validator class basename that doesn't
  * exist in the namespace, is() throws an exception.
  *
  * Refactored to conform with ZF-2724.
  *
  * @group  ZF-2724
  * @return void
  * @expectedException Zend_Validate_Exception
  */
 public function testStaticFactoryClassNotFound()
 {
     $this->markTestSkipped('is() method should not try to implement its own plugin loader - refactor this');
     Validator\ValidatorChain::is('1234', 'UnknownValidator');
 }