Commit 9beb881a authored by Ivan Chepurnyi's avatar Ivan Chepurnyi

Make more friendly error reporting on fixture files collision in config values. Thank to @BlueAcorn

parent e0b986c6
......@@ -160,6 +160,16 @@ class EcomDev_PHPUnit_Model_Fixture_Processor_Config
$value = $backend->getValue();
}
if (is_array($value)) {
Mage::throwException(
sprintf(
'There is a collision in configuration value %s. Got: %s',
$path,
print_r($value, true)
)
);
}
Mage::getConfig()->setNode($path, $value);
return $this;
}
......
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