class DataProvider

internal  
 

Utility class for providing data from various sources for tests.

Methods

static array
load(string $file, string $query = '')

Loads data from a specified file and filters them based on a query string. Supports both PHP files and INI files.

static bool
testQuery(string $input, string $query)

Evaluates a query against a set of data keys to determine if the key matches the criteria.

static array
parseAnnotation(string $annotation, string $file)

Parses a data provider annotation from a test method to extract the file path and query.

Details

at line 22
static array load(string $file, string $query = '')

Loads data from a specified file and filters them based on a query string. Supports both PHP files and INI files.

Parameters

string $file
string $query

Return Value

array

at line 56
static bool testQuery(string $input, string $query)

Evaluates a query against a set of data keys to determine if the key matches the criteria.

Parameters

string $input
string $query

Return Value

bool

at line 96
static array parseAnnotation(string $annotation, string $file)

Parses a data provider annotation from a test method to extract the file path and query.

Parameters

string $annotation
string $file

Return Value

array