/** * @dataProvider providerForSetName */ public function testNotSetName($v) { $not = new Not($v); $not->setName('Foo'); $this->assertEquals('Foo', $not->getName()); $this->assertEquals('Foo', $v->getName()); }
/** * @dataProvider providerForInvalidNot * @expectedException Respect\Validation\Exceptions\ValidationException */ public function testNotNotHaha($v, $input) { $not = new Not($v); $this->assertFalse($not->assert($input)); }