/** * 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); }
/** * 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); }