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