/** * @dataProvider providerForInvalidLowercase * @expectedException Respect\Validation\Exceptions\LowercaseException */ public function testInvalidLowercaseShouldThrowException($input) { $lowercase = new Lowercase(); $this->assertFalse($lowercase->__invoke($input)); $this->assertFalse($lowercase->assert($input)); }
/** * @dataProvider providerForInvalidLowercase * @expectedException Respect\Validation\Exceptions\LowercaseException */ public function test_invalid_lowercase_should_throw_exception($input) { $lowercase = new Lowercase(); $this->assertFalse($lowercase->validate($input)); $this->assertFalse($lowercase->assert($input)); }