/** * @dataProvider providerForContains */ public function test_strings_containing_expected_value_should_pass($start, $input) { $v = new Contains($start); $this->assertTrue($v->validate($input)); $this->assertTrue($v->check($input)); $this->assertTrue($v->assert($input)); }
/** * @dataProvider providerForContains */ public function testStringsContainingExpectedValueShouldPass($start, $input) { $v = new Contains($start); $this->assertTrue($v->__invoke($input)); $this->assertTrue($v->check($input)); $this->assertTrue($v->assert($input)); }