original_string: protected function isExpected($value)
      {
          if ($expected = $this->getValue()) {
              $this->setActualValue($value);
  
              return $this->getActualValue() === $expected;
          }
  
          return true;
      }
code: protected function isExpected($value)
      {
          if ($expected = $this->getValue()) {
              $this->setActualValue($value);
  
              return $this->getActualValue() === $expected;
          }
  
          return true;
      }
code_tokens: protected function isExpected ( $ value ) { if ( $ expected = $ this -> getValue ( ) ) { $ this -> setActualValue ( $ value ) ; return $ this -> getActualValue ( ) === $ expected ; } return true ; }
docstring: Check if the given value is expected.
  
  @param $value
  @return bool
docstring_tokens: Check if the given value is expected .