/** * @dataProvider providerForInvalidUppercase * @expectedException Respect\Validation\Exceptions\UppercaseException */ public function testInvalidUppercaseShouldThrowException($input) { $lowercase = new Uppercase(); $this->assertFalse($lowercase->validate($input)); $this->assertFalse($lowercase->assert($input)); }
/** * @dataProvider providerForInvalidUppercase * @expectedException Respect\Validation\Exceptions\UppercaseException */ public function test_invalid_uppercase_should_throw_exception($input) { $lowercase = new Uppercase(); $this->assertFalse($lowercase->validate($input)); $this->assertFalse($lowercase->assert($input)); }