final class DataProviderTestSuite extends TestSuite (View source)

internal  This class is not covered by the backward compatibility promise for PHPUnit
 

Methods

static TestSuite
empty(string $name)

No description

static TestSuite
fromClassReflector(ReflectionClass $class, array $groups = [])

No description

void
addTest(Test $test, array $groups = [])

Adds a test to the suite.

void
addTestSuite(ReflectionClass $testClass, array $groups = [])

Adds the tests from the given class to the suite.

void
addTestFile(string $filename, array $groups = [])

Wraps both addTest() and addTestSuite as well as the separate import statements for the user's convenience.

void
addTestFiles(iterable $fileNames)

Wrapper for addTestFile() that adds multiple test files.

int
count()

Counts the number of test cases that will be run by this test.

bool
isEmpty()

No description

string
name()

No description

array
groups()

No description

array
collect()

No description

void
run()

No description

array
tests()

Returns the tests as an enumeration.

void
setTests(array $tests)

Set tests of the test suite.

never
markTestSuiteSkipped(string $message = '')

Mark the test suite as skipped.

getIterator()

Returns an iterator for this test suite.

void
injectFilter(Factory $filter)

No description

array
provides()

No description

array
requires()

No description

string
sortId()

No description

bool
isForTestClass()

No description

void
addTestMethod(ReflectionClass $class, ReflectionMethod $method, array $groups)

No description

void
setDependencies(array $dependencies)

No description

size()

Returns the size of each test created using the data provider(s).

Details

static TestSuite empty(string $name)

No description

Parameters

string $name

Return Value

TestSuite

static TestSuite fromClassReflector(ReflectionClass $class, array $groups = [])

No description

Parameters

ReflectionClass $class
array $groups

Return Value

TestSuite

void addTest(Test $test, array $groups = [])

Adds a test to the suite.

Parameters

Test $test
array $groups

Return Value

void

void addTestSuite(ReflectionClass $testClass, array $groups = [])

Adds the tests from the given class to the suite.

Parameters

ReflectionClass $testClass
array $groups

Return Value

void

Exceptions

Exception

void addTestFile(string $filename, array $groups = [])

Wraps both addTest() and addTestSuite as well as the separate import statements for the user's convenience.

If the named file cannot be read or there are no new tests that can be added, a PHPUnit\Framework\WarningTestCase will be created instead, leaving the current test run untouched.

Parameters

string $filename
array $groups

Return Value

void

Exceptions

Exception

void addTestFiles(iterable $fileNames)

Wrapper for addTestFile() that adds multiple test files.

Parameters

iterable $fileNames

Return Value

void

Exceptions

Exception

int count()

Counts the number of test cases that will be run by this test.

Return Value

int

bool isEmpty()

No description

Return Value

bool

string name()

No description

Return Value

string

array groups()

No description

Return Value

array

array collect()

No description

Return Value

array

void run()

No description

Return Value

void

Exceptions

RuntimeException
Exception
InvalidArgumentException
NoPreviousThrowableException
UnintentionallyCoveredCodeException

array tests()

Returns the tests as an enumeration.

Return Value

array

void setTests(array $tests)

Set tests of the test suite.

Parameters

array $tests

Return Value

void

never markTestSuiteSkipped(string $message = '')

Mark the test suite as skipped.

Parameters

string $message

Return Value

never

Exceptions

SkippedTestSuiteError

Iterator getIterator()

Returns an iterator for this test suite.

Return Value

Iterator

void injectFilter(Factory $filter)

No description

Parameters

Factory $filter

Return Value

void

array provides()

No description

Return Value

array

array requires()

No description

Return Value

array

string sortId()

No description

Return Value

string

bool isForTestClass()

No description

Return Value

bool

protected void addTestMethod(ReflectionClass $class, ReflectionMethod $method, array $groups)

No description

Parameters

ReflectionClass $class
ReflectionMethod $method
array $groups

Return Value

void

Exceptions

Exception

void setDependencies(array $dependencies)

No description

Parameters

array $dependencies

Return Value

void

TestSize size()

Returns the size of each test created using the data provider(s).

Return Value

TestSize