PHP 클래스 Behat\RestTestingExtension\RestTestingHelper

파일 보기 프로젝트 열기: deminy/behat-rest-testing 1 사용 예제들

공개 메소드들

메소드 설명
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