class DataProvider

internal  
 

Loads and filters test data from PHP or INI files.

Methods

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

Loads data sets from a PHP or INI file, optionally filtered by a query string.

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

Checks whether a data-set key matches the query filter criteria.

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

Parses a @dataProvider annotation value into its file path, query, and optional flag.

Details

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

Loads data sets from a PHP or INI file, optionally filtered by a query string.

Parameters

string $file
string $query

Return Value

array

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

Checks whether a data-set key matches the query filter criteria.

Parameters

string $input
string $query

Return Value

bool

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

Parses a @dataProvider annotation value into its file path, query, and optional flag.

Parameters

string $annotation
string $file

Return Value

array