/** * 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 $other->asNiceXml(); } elseif (!$this->_useActualValue) { return (string) $other; } return parent::getActualValue($other); }
/** * For layout, actual value should be always set * (non-PHPdoc) * @see Mage_PHPUnit_Constraint_Abstract::getActualValue() */ protected function getActualValue($other) { if ($this->_useActualValue) { if (is_array($this->_actualValue)) { return PHPUnit_Util_Type::toString($this->_actualValue); } return parent::getActualValue($other); } return ''; }