class AttributeParser

internal  
 

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 27
static array forClass(string $className)

Parse attributes for a class.

Parameters

string $className

Return Value

array

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

Parse attributes for a method.

Parameters

string $className
string $methodName

Return Value

array

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

Validate if a class is a valid testing attribute.

Parameters

object|string $class

Return Value

bool

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

Resolve the given attribute.

Parameters

ReflectionAttribute $attribute

Return Value

array