mirror of
https://github.com/parsecsv/parsecsv-for-php.git
synced 2026-02-19 08:36:39 +00:00
PHPUnit test was not compatible with PHP ^7.0
This commit is contained in:
@@ -326,7 +326,7 @@ class ParseTest extends TestCase {
|
|||||||
* @return mixed Method return.
|
* @return mixed Method return.
|
||||||
*/
|
*/
|
||||||
private function invokeMethod($object, $methodName, $parameters = []) {
|
private function invokeMethod($object, $methodName, $parameters = []) {
|
||||||
$reflection = new ReflectionClass($object::class);
|
$reflection = new ReflectionClass(get_class($object));
|
||||||
$method = $reflection->getMethod($methodName);
|
$method = $reflection->getMethod($methodName);
|
||||||
$method->setAccessible(true);
|
$method->setAccessible(true);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user