示例#1
0
 /**
  * @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));
 }
示例#2
0
 /**
  * @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));
 }