mirror of
https://github.com/ovh/php-ovh.git
synced 2023-11-05 03:20:26 +01:00
Apply string to class constant
Signed-off-by: peter279k <peter279k@gmail.com>
This commit is contained in:
parent
81610e3962
commit
13c09921a0
@ -119,7 +119,7 @@ class ApiFunctionalTest extends TestCase
|
|||||||
*/
|
*/
|
||||||
protected static function getPrivateMethod($name)
|
protected static function getPrivateMethod($name)
|
||||||
{
|
{
|
||||||
$class = new \ReflectionClass('Ovh\Api');
|
$class = new \ReflectionClass(\Ovh\Api::class);
|
||||||
$method = $class->getMethod($name);
|
$method = $class->getMethod($name);
|
||||||
$method->setAccessible(true);
|
$method->setAccessible(true);
|
||||||
|
|
||||||
@ -135,7 +135,7 @@ class ApiFunctionalTest extends TestCase
|
|||||||
*/
|
*/
|
||||||
protected static function getPrivateProperty($name)
|
protected static function getPrivateProperty($name)
|
||||||
{
|
{
|
||||||
$class = new \ReflectionClass('Ovh\Api');
|
$class = new \ReflectionClass(\Ovh\Api::class);
|
||||||
$property = $class->getProperty($name);
|
$property = $class->getProperty($name);
|
||||||
$property->setAccessible(true);
|
$property->setAccessible(true);
|
||||||
|
|
||||||
|
@ -79,7 +79,7 @@ class ApiTest extends TestCase
|
|||||||
*/
|
*/
|
||||||
protected static function getPrivateProperty($name)
|
protected static function getPrivateProperty($name)
|
||||||
{
|
{
|
||||||
$class = new \ReflectionClass('Ovh\Api');
|
$class = new \ReflectionClass(\Ovh\Api::class);
|
||||||
$property = $class->getProperty($name);
|
$property = $class->getProperty($name);
|
||||||
$property->setAccessible(true);
|
$property->setAccessible(true);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user