tests/Helper/DeprecatedLogFormatterTest.php 1 location
|
@@ 120-127 (lines=8) @@
|
| 117 |
|
* |
| 118 |
|
* @return mixed Method return. |
| 119 |
|
*/ |
| 120 |
|
public function invokeMethod(&$object, $methodName, array $parameters = array()) |
| 121 |
|
{ |
| 122 |
|
$reflection = new ReflectionClass(get_class($object)); |
| 123 |
|
$method = $reflection->getMethod($methodName); |
| 124 |
|
$method->setAccessible(true); |
| 125 |
|
|
| 126 |
|
return $method->invokeArgs($object, $parameters); |
| 127 |
|
} |
| 128 |
|
|
| 129 |
|
} |
tests/Model/LogEntryTest.php 1 location
|
@@ 111-118 (lines=8) @@
|
| 108 |
|
* |
| 109 |
|
* @return mixed Method return. |
| 110 |
|
*/ |
| 111 |
|
public function invokeMethod(&$object, $methodName, array $parameters = array()) |
| 112 |
|
{ |
| 113 |
|
$reflection = new ReflectionClass(get_class($object)); |
| 114 |
|
$method = $reflection->getMethod($methodName); |
| 115 |
|
$method->setAccessible(true); |
| 116 |
|
|
| 117 |
|
return $method->invokeArgs($object, $parameters); |
| 118 |
|
} |
| 119 |
|
} |
| 120 |
|
|