Inheritance: extends Respect\Validation\Rules\AbstractRule
Esempio n. 1
0
 /**
  * @dataProvider providerForSetName
  */
 public function testNotSetName($v)
 {
     $not = new Not($v);
     $not->setName('Foo');
     $this->assertEquals('Foo', $not->getName());
     $this->assertEquals('Foo', $v->getName());
 }
Esempio n. 2
0
 /**
  * @dataProvider providerForInvalidNot
  * @expectedException Respect\Validation\Exceptions\ValidationException
  */
 public function testNotNotHaha($v, $input)
 {
     $not = new Not($v);
     $this->assertFalse($not->assert($input));
 }