/** * @dataProvider providerForNotEndsWith * @expectedException Respect\Validation\Exceptions\EndsWithException */ public function testStringsNotEndingWithExpectedValueShouldNotPass($start, $input, $caseSensitive = false) { $v = new EndsWith($start, $caseSensitive); $this->assertFalse($v->__invoke($input)); $this->assertFalse($v->assert($input)); }
/** * @dataProvider providerForNotEndsWith * @expectedException Respect\Validation\Exceptions\EndsWithException */ public function test_strings_NOT_ending_with_expected_value_shoud_NOT_pass($start, $input, $caseSensitive = false) { $v = new EndsWith($start, $caseSensitive); $this->assertFalse($v->validate($input)); $this->assertFalse($v->assert($input)); }