DataProviderTestSuite
class DataProviderTestSuite extends TestSuite (View source)
Properties
| protected bool | $backupGlobals | Enable or disable the backup and restoration of the $GLOBALS array. | from TestSuite | 
| protected bool | $backupStaticAttributes | Enable or disable the backup and restoration of static attributes. | from TestSuite | 
| protected bool | $runTestInSeparateProcess | from TestSuite | |
| protected string | $name | The name of the test suite. | from TestSuite | 
| protected array | $groups | The test groups of the test suite. | from TestSuite | 
| protected TestCase[] | $tests | The tests in the test suite. | from TestSuite | 
| protected int | $numTests | The number of tests in the test suite. | from TestSuite | 
| protected bool | $testCase | from TestSuite | |
| protected array | $foundClasses | from TestSuite | 
Methods
Wraps both addTest() and addTestSuite
as well as the separate import statements for the user's convenience.
Counts the number of test cases that will be run by this test.
No description
No description
No description
Template Method that is called after the tests of this test suite have finished running.
Sets the dependencies of a TestCase.
Details
        
                            
    __construct(mixed $theClass = '', string $name = '')
        
    
    Constructs a new TestSuite:
PHPUnit\Framework\TestSuite() constructs an empty TestSuite.
PHPUnit\Framework\TestSuite(ReflectionClass) constructs a TestSuite from the given class.
PHPUnit\Framework\TestSuite(ReflectionClass, String) constructs a TestSuite from the given class with the given name.
PHPUnit\Framework\TestSuite(String) either constructs a TestSuite from the given class (if the passed string is the name of an existing class) or constructs an empty TestSuite with the given name.
        
                            
    addTestSuite(mixed $testClass)
        
    
    Adds the tests from the given class to the suite.
        
                            
    addTestFile(string $filename)
        
    
    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.
        
                            
    addTestFiles(array|Iterator $filenames)
        
    
    Wrapper for addTestFile() that adds multiple test files.
        
                            int
    count(bool $preferCache = false)
        
    
    Counts the number of test cases that will be run by this test.
        
                static            Test
    createTest(ReflectionClass $theClass, string $name)
        
    
    
        
                    protected        TestResult
    createResult()
        
    
    Creates a default TestResult object.
        
                            TestResult
    run(TestResult $result = null)
        
    
    Runs the tests and collects their result in a TestResult.
        
                            
    runTest(Test $test, TestResult $result)
        deprecated
    
    deprecated
Runs a test.
        
                    protected        
    addTestMethod(ReflectionClass $class, ReflectionMethod $method)
        
    
    
        
                static            bool
    isTestMethod(ReflectionMethod $method)
        
    
    
        
                static    protected        WarningTestCase
    warning(string $message)
        
    
    
        
                static    protected        SkippedTestCase
    skipTest(string $class, string $methodName, string $message)
        
    
    
        
                static    protected        IncompleteTestCase
    incompleteTest(string $class, string $methodName, string $message)
        
    
    
        
                            
    setbeStrictAboutChangesToGlobalState(bool $beStrictAboutChangesToGlobalState)
        
    
    
        
                            TestSuiteIterator
    getIterator()
        
    
    Returns an iterator for this test suite.
        
                    protected        
    setUp()
        
    
    Template Method that is called before the tests of this test suite are run.
        
                    protected        
    tearDown()
        
    
    Template Method that is called after the tests of this test suite have finished running.
        at         line 19
                            
    setDependencies(array $dependencies)
        
    
    Sets the dependencies of a TestCase.