tests/Helper/DeprecatedLogFormatterTest.php 1 location
|
@@ 130-137 (lines=8) @@
|
| 127 |
|
* |
| 128 |
|
* @return mixed Method return. |
| 129 |
|
*/ |
| 130 |
|
public function invokeMethod(&$object, $methodName, array $parameters = array()) |
| 131 |
|
{ |
| 132 |
|
$reflection = new ReflectionClass(get_class($object)); |
| 133 |
|
$method = $reflection->getMethod($methodName); |
| 134 |
|
$method->setAccessible(true); |
| 135 |
|
|
| 136 |
|
return $method->invokeArgs($object, $parameters); |
| 137 |
|
} |
| 138 |
|
|
| 139 |
|
} |
tests/Model/LogEntryTest.php 1 location
|
@@ 148-155 (lines=8) @@
|
| 145 |
|
* |
| 146 |
|
* @return mixed Method return. |
| 147 |
|
*/ |
| 148 |
|
public function invokeMethod(&$object, $methodName, array $parameters = array()) |
| 149 |
|
{ |
| 150 |
|
$reflection = new ReflectionClass(get_class($object)); |
| 151 |
|
$method = $reflection->getMethod($methodName); |
| 152 |
|
$method->setAccessible(true); |
| 153 |
|
|
| 154 |
|
return $method->invokeArgs($object, $parameters); |
| 155 |
|
} |
| 156 |
|
} |
| 157 |
|
|