Code Duplication    Length = 8-8 lines in 2 locations

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

tests/Helper/DeprecatedLogFormatterTest.php 1 location

@@ 121-128 (lines=8) @@
118
     *
119
     * @return mixed Method return.
120
     */
121
    public function invokeMethod(&$object, $methodName, array $parameters = array())
122
    {
123
        $reflection = new ReflectionClass(get_class($object));
124
        $method = $reflection->getMethod($methodName);
125
        $method->setAccessible(true);
126
127
        return $method->invokeArgs($object, $parameters);
128
    }
129
130
}