src/Constraints/HasValue.php
public function matches($crawler): bool
    {
        $crawler = $this->crawler($crawler);

        return $this->getInputOrTextAreaValue($crawler) == $this->value;
    }
public function matches($crawler): bool
    {
        $crawler = $this->crawler($crawler);

        return $this->getInputOrTextAreaValue($crawler) == $this->value;
    }
public function matches ( $ crawler ) : bool { $ crawler = $ this -> crawler ( $ crawler ) ; return $ this -> getInputOrTextAreaValue ( $ crawler ) == $ this -> value ; }
Check if the input contains the expected value.

@param  \Symfony\Component\DomCrawler\Crawler|string  $crawler
@return bool
Check if the input contains the expected value .