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

        return in_array($this->value, $this->getSelectedValue($crawler));
    }
protected function matches($crawler): bool
    {
        $crawler = $this->crawler($crawler);

        return in_array($this->value, $this->getSelectedValue($crawler));
    }
protected function matches ( $ crawler ) : bool { $ crawler = $ this -> crawler ( $ crawler ) ; return in_array ( $ this -> value , $ this -> getSelectedValue ( $ crawler ) ) ; }
Determine if the select or radio element is selected.

@param  \Symfony\Component\DomCrawler\Crawler|string  $crawler
@return bool
Determine if the select or radio element is selected .