protected function isExpected($value)
    {
        if ($expected = $this->getValue()) {
            $this->setActualValue($value);

            return $this->getActualValue() === $expected;
        }

        return true;
    }
protected function isExpected($value)
    {
        if ($expected = $this->getValue()) {
            $this->setActualValue($value);

            return $this->getActualValue() === $expected;
        }

        return true;
    }
protected function isExpected ( $ value ) { if ( $ expected = $ this -> getValue ( ) ) { $ this -> setActualValue ( $ value ) ; return $ this -> getActualValue ( ) === $ expected ; } return true ; }
Check if the given value is expected.

@param $value
@return bool
Check if the given value is expected .