diff --git a/tests/ApiFunctionalTest.php b/tests/ApiFunctionalTest.php index 658a422..3effab8 100644 --- a/tests/ApiFunctionalTest.php +++ b/tests/ApiFunctionalTest.php @@ -119,7 +119,7 @@ class ApiFunctionalTest extends TestCase */ protected static function getPrivateMethod($name) { - $class = new \ReflectionClass('Ovh\Api'); + $class = new \ReflectionClass(\Ovh\Api::class); $method = $class->getMethod($name); $method->setAccessible(true); @@ -135,7 +135,7 @@ class ApiFunctionalTest extends TestCase */ protected static function getPrivateProperty($name) { - $class = new \ReflectionClass('Ovh\Api'); + $class = new \ReflectionClass(\Ovh\Api::class); $property = $class->getProperty($name); $property->setAccessible(true); diff --git a/tests/ApiTest.php b/tests/ApiTest.php index 84b888f..5895be7 100644 --- a/tests/ApiTest.php +++ b/tests/ApiTest.php @@ -79,7 +79,7 @@ class ApiTest extends TestCase */ protected static function getPrivateProperty($name) { - $class = new \ReflectionClass('Ovh\Api'); + $class = new \ReflectionClass(\Ovh\Api::class); $property = $class->getProperty($name); $property->setAccessible(true);