/** * @dataProvider providerForNotContains * @expectedException Respect\Validation\Exceptions\ContainsException */ public function test_strings_NOT_contains_expected_value_shoud_NOT_pass($start, $input, $identical = false) { $v = new Contains($start, $identical); $this->assertFalse($v->validate($input)); $this->assertFalse($v->assert($input)); }
/** * @dataProvider providerForNotContains */ public function testStringsNotContainsExpectedValueShouldNotPass($start, $input) { $v = new Contains($start, false); $this->assertFalse($v->validate($input)); }