contains() public static method

Checks assertion. Values must contains expected needle.
public static contains ( $needle, $actual, $description = NULL ) : void
return void
コード例 #1
0
ファイル: ResponseAssert.php プロジェクト: venne/tester
 /**
  * @param $expected
  * @return $this
  */
 public function redirectContains($expected)
 {
     Assert::contains($expected, $this->getObject()->url);
     return $this;
 }
コード例 #2
0
ファイル: Match.php プロジェクト: redhead/mockyll
 public static function has($expected)
 {
     return static::match(function ($arg) use($expected) {
         Assert::contains($expected, $arg);
     });
 }