contains() public static method

Checks assertion. Values must contains expected needle.
public static contains ( $needle, $actual, $description = NULL ) : void
return void
Exemplo n.º 1
0
 /**
  * @param $expected
  * @return $this
  */
 public function redirectContains($expected)
 {
     Assert::contains($expected, $this->getObject()->url);
     return $this;
 }
Exemplo n.º 2
0
 public static function has($expected)
 {
     return static::match(function ($arg) use($expected) {
         Assert::contains($expected, $arg);
     });
 }