/** * For layout, actual value should be always set * (non-PHPdoc) * @see EcomDev_PHPUnit_ConstraintAbstract::getActualValue() */ protected function getActualValue($other = null) { if ($this->_useActualValue) { return parent::getActualValue($other); } return ''; }
/** * Returns a scalar representation of actual value, * Returns $other if internal acutal value is not set * * @param Varien_Simplexml_Element $other * @return scalar */ protected function getActualValue($other = null) { if (!$this->_useActualValue && $other->hasChildren()) { return $this->getXmlAsDom($other); } elseif (!$this->_useActualValue) { return (string) $other; } return parent::getActualValue($other); }