/** * @param $expected * @return $this */ public function redirectContains($expected) { Assert::contains($expected, $this->getObject()->url); return $this; }
public static function has($expected) { return static::match(function ($arg) use($expected) { Assert::contains($expected, $arg); }); }