We will work on Apr 26th (Saturday) and will be off from Apr 30th (Wednesday) until May 2nd (Friday) for public holiday in our country

Commit 02487cfa authored by Fabian Blechschmidt's avatar Fabian Blechschmidt

Fatal error: Call to undefined method EcomDev_PHPUnit_Constraint_Config_Node::textContainValues()

-> Renamed evaluateContainValue to evaluateContainValues

evaluateContainValues should return true, of the values is found.
parent 14a6447b
...@@ -262,7 +262,7 @@ class EcomDev_PHPUnit_Constraint_Config_Node ...@@ -262,7 +262,7 @@ class EcomDev_PHPUnit_Constraint_Config_Node
* @param Varien_Simplexml_Element $other * @param Varien_Simplexml_Element $other
* @return boolean * @return boolean
*/ */
protected function evaluateContainValue($other) protected function evaluateContainValues($other)
{ {
if ($other->hasChildren()) { if ($other->hasChildren()) {
throw new RuntimeException(sprintf( throw new RuntimeException(sprintf(
...@@ -274,7 +274,7 @@ class EcomDev_PHPUnit_Constraint_Config_Node ...@@ -274,7 +274,7 @@ class EcomDev_PHPUnit_Constraint_Config_Node
$values = explode(',', (string)$other); $values = explode(',', (string)$other);
if (!in_array($this->_expectedValue, $values)) { if (in_array($this->_expectedValue, $values)) {
return true; return true;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment