View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0004665 | OXID eShop (all versions) | 4.07. Source code, Test | public | 2012-10-25 15:54 | 2012-11-19 15:41 |
Reporter | Helmut L. | Assigned To | |||
Priority | normal | Severity | major | Reproducibility | always |
Status | resolved | Resolution | no change required | ||
Product Version | 4.6.5 revision 49955 | ||||
Summary | 0004665: Type Hints for oxConfig fail in unit tests | ||||
Description | If I use a type hint for oxConfig in a method and pass an oxConfig Object to it wich I get using the oxConfig::getInstance Method these calls fail in Unit Test because the getInstance Method returns then an modConfig Object wich is no child class of the oxConfig object. | ||||
Steps To Reproduce | create a test class and use it in a unit test: class test { public function test() { $config = oxConfig::getInstance(); $this->typeHint($config); } public function typeHint(oxConfig $config) { } } | ||||
Tags | No tags attached. | ||||
Theme | Both | ||||
Browser | All | ||||
PHP Version | any | ||||
Database Version | any | ||||