Exemplo n.º 1
0
 /**
  * Retrives a node value from configuration by child constraint path
  *
  *
  * @param Varien_Simplexml_Config $other
  */
 protected function getNodeValue($config)
 {
     $nodeValue = $config->getNode($this->constraint->getNodePath());
     if ($nodeValue === false) {
         throw new Mage_PHPUnit_Constraint_Exception(sprintf('Invalid node path specified for evaluation %s', $this->constraint->getNodePath()));
     }
     return $nodeValue;
 }
Exemplo n.º 2
0
 /**
  * Retrives a node value from configuration by child constraint path
  *
  *
  * @param $config
  * @throws EcomDev_PHPUnit_Constraint_Exception
  * @return
  * @internal param \Varien_Simplexml_Config $other
  */
 protected function getNodeValue($config)
 {
     $nodeValue = $config->getNode($this->constraint->getNodePath());
     if ($nodeValue === false) {
         throw new EcomDev_PHPUnit_Constraint_Exception(sprintf('Cannot find any node in specified path: %s', $this->constraint->getNodePath()));
     }
     return $nodeValue;
 }