| Conditions | 3 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | <?php |
||
| 15 | public function assertCurrEnvConfigEqualsSysConfig($variable, $path, $store = null) |
||
| 16 | { |
||
| 17 | $expected = Mage::helper('limesoda_environmentconfiguration/current')->getValue($variable); |
||
| 18 | $actual = Mage::getStoreConfig($path, $store); |
||
| 19 | |||
| 20 | if ($expected != $actual) { |
||
| 21 | throw new Exception("The value of environment configuration variable '$variable' did not match the system configuration value of '$path'" . (!is_null($store) ? " (store '$store')" : '') . ". Expected: $expected, actual: $actual"); |
||
| 22 | } |
||
| 23 | } |
||
| 24 | } |
||
| 25 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.