contains() публичный статический Метод

Checks assertion. Values must contains expected needle.
public static contains ( $needle, $actual, $description = NULL ) : void
Результат void
Пример #1
0
 /**
  * @param $expected
  * @return $this
  */
 public function redirectContains($expected)
 {
     Assert::contains($expected, $this->getObject()->url);
     return $this;
 }
Пример #2
0
 public static function has($expected)
 {
     return static::match(function ($arg) use($expected) {
         Assert::contains($expected, $arg);
     });
 }