PHP Класс Behat\RestTestingExtension\RestTestingHelper

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
callMethod ( string | object $class, string $methodName, array $args = [] ) : mixed Call a protected/private static/non-static method of given class.
findProperty ( object | string $class, string $name, boolean $access = true ) : ReflectionProperty Finds a property for the given class.
getMethod ( string $className, string $methodName ) : ReflectionMethod A helper method for testing protected/private static/non-static methods.
getProperty ( object | string $class, string $name ) : mixed Returns the current value of a property.
setProperty ( object | string $class, string $name, mixed $value ) : void Sets the new value of a property.

Описание методов

callMethod() публичный статический Метод

Call a protected/private static/non-static method of given class.
public static callMethod ( string | object $class, string $methodName, array $args = [] ) : mixed
$class string | object
$methodName string
$args array
Результат mixed

findProperty() публичный статический Метод

Finds a property for the given class.
public static findProperty ( object | string $class, string $name, boolean $access = true ) : ReflectionProperty
$class object | string The class instance or name.
$name string The name of a property.
$access boolean Make the property accessible?
Результат ReflectionProperty The property.

getMethod() публичный статический Метод

A helper method for testing protected/private static/non-static methods.
public static getMethod ( string $className, string $methodName ) : ReflectionMethod
$className string
$methodName string
Результат ReflectionMethod

getProperty() публичный статический Метод

Returns the current value of a property.
public static getProperty ( object | string $class, string $name ) : mixed
$class object | string The class instance or name.
$name string The name of a property.
Результат mixed The current value of the property.

setProperty() публичный статический Метод

Sets the new value of a property.
public static setProperty ( object | string $class, string $name, mixed $value ) : void
$class object | string The class instance or name.
$name string The name of a property.
$value mixed The new value.
Результат void