public function assertHasHeader(string $expected)
    {
        $actual = $this->getHeaderText();
        if ($expected === $actual) {
            return;
        }

        throw new ExpectationException(
            sprintf(
                '[W402] Expected screen header "%1$s", found "%2$s".',
                $expected,
                $actual
            ),
            $this->getDriver()
        );
    }
public function assertHasHeader(string $expected)
    {
        $actual = $this->getHeaderText();
        if ($expected === $actual) {
            return;
        }

        throw new ExpectationException(
            sprintf(
                '[W402] Expected screen header "%1$s", found "%2$s".',
                $expected,
                $actual
            ),
            $this->getDriver()
        );
    }
public function assertHasHeader ( string $ expected ) { $ actual = $ this -> getHeaderText ( ) ; if ( $ expected === $ actual ) { return ; } throw new ExpectationException ( sprintf ( '[W402] Expected screen header "%1$s", found "%2$s".' , $ expected , $ actual ) , $ this -> getDriver ( ) ) ; }
Asserts the text in the header tag matches the given text.

@param string $expected

@throws \Behat\Mink\Exception\ExpectationException
Asserts the text in the header tag matches the given text .