class AttributeParser

Parses PHPUnit test case attributes for testing features.

Methods

static array
forClass(string $className)

Parse attributes for a class.

static array
forMethod(string $className, string $methodName)

Parse attributes for a method.

static bool
validAttribute(object|string $class)

Validate if a class is a valid testing attribute.

static array
resolveAttribute(ReflectionAttribute $attribute)

Resolve the given attribute.

Details

at line 25
static array forClass(string $className)

Parse attributes for a class.

Parameters

string $className

Return Value

array

at line 57
static array forMethod(string $className, string $methodName)

Parse attributes for a method.

Parameters

string $className
string $methodName

Return Value

array

at line 81
static bool validAttribute(object|string $class)

Validate if a class is a valid testing attribute.

Parameters

object|string $class

Return Value

bool

at line 98
static protected array resolveAttribute(ReflectionAttribute $attribute)

Resolve the given attribute.

Parameters

ReflectionAttribute $attribute

Return Value

array