Esempio n. 1
0
 /**
  * Evaluates controller response header is evaluated by constraint
  *
  *
  * @param Mage_PHPUnit_Controller_Response_Interface $other
  */
 protected function evaluateConstraint($other)
 {
     $this->setActualValue($other->getSentHeader($this->_headerName));
     return $this->_expectedValue->evaluate($this->_actualValue);
 }
Esempio n. 2
0
 /**
  * Evaluates controller response body is evaluated by constraint
  *
  *
  * @param Mage_PHPUnit_Controller_Response_Interface $other
  */
 protected function evaluateConstraint($other)
 {
     $this->setActualValue($other->getOutputBody());
     return $this->_expectedValue->evaluate($this->_actualValue);
 }