class (none) \ PHPUnit_Framework_TestSuite_DataProvider

All implemented interfaces:
Countable, PHPUnit_Framework_Test, PHPUnit_Framework_SelfDescribing, IteratorAggregate

A TestSuite is a composite of Tests. It runs a collection of test cases. (from PHPUnit_Framework_TestSuite)

Here is an example using the dynamic test definition.

addTest(new MathTest('testPass')); ?>

Alternatively, a TestSuite can extract the tests to be run automatically. To do so you pass a ReflectionClass instance for your PHPUnit_Framework_TestCase class to the PHPUnit_Framework_TestSuite constructor.

This constructor creates a suite with all the methods starting with "test" that take no arguments. (from PHPUnit_Framework_TestSuite)


Method Summary

Name Description
setDependencies(array $dependencies)Sets the dependencies of a TestCase.

Inherited Method Summary

Name Description
__construct($theClass = "", $name = "")Constructs a new TestSuite: (from PHPUnit_Framework_TestSuite)
addTest(PHPUnit_Framework_Test $test, $groups = array())Adds a test to the suite. (from PHPUnit_Framework_TestSuite)
addTestFile($filename)Wraps both addTest() and addTestSuite as well as the separate import statements for the user's convenience. (from PHPUnit_Framework_TestSuite)
addTestFiles($filenames)Wrapper for addTestFile() that adds multiple test files. (from PHPUnit_Framework_TestSuite)
addTestMethod(ReflectionClass $class, ReflectionMethod $method) (from PHPUnit_Framework_TestSuite)
addTestSuite($testClass)Adds the tests from the given class to the suite. (from PHPUnit_Framework_TestSuite)
count($preferCache = false)Counts the number of test cases that will be run by this test. (from PHPUnit_Framework_TestSuite)
createResult()Creates a default TestResult object. (from PHPUnit_Framework_TestSuite)
createTest(ReflectionClass $theClass, $name) (from PHPUnit_Framework_TestSuite)
getGroupDetails() (from PHPUnit_Framework_TestSuite)
getGroups()Returns the test groups of the suite. (from PHPUnit_Framework_TestSuite)
getIterator()Returns an iterator for this test suite. (from PHPUnit_Framework_TestSuite)
getName()Returns the name of the suite. (from PHPUnit_Framework_TestSuite)
incompleteTest($class, $methodName, $message) (from PHPUnit_Framework_TestSuite)
injectFilter(PHPUnit_Runner_Filter_Factory $filter) (from PHPUnit_Framework_TestSuite)
isTestMethod(ReflectionMethod $method) (from PHPUnit_Framework_TestSuite)
markTestSuiteSkipped($message = "")Mark the test suite as skipped. (from PHPUnit_Framework_TestSuite)
run(PHPUnit_Framework_TestResult $result = null)Runs the tests and collects their result in a TestResult. (from PHPUnit_Framework_TestSuite)
runTest(PHPUnit_Framework_Test $test, PHPUnit_Framework_TestResult $result)Runs a test. (from PHPUnit_Framework_TestSuite)
setBackupGlobals($backupGlobals) (from PHPUnit_Framework_TestSuite)
setBackupStaticAttributes($backupStaticAttributes) (from PHPUnit_Framework_TestSuite)
setDisallowChangesToGlobalState($disallowChangesToGlobalState) (from PHPUnit_Framework_TestSuite)
setGroupDetails(array $groups)Set tests groups of the test case (from PHPUnit_Framework_TestSuite)
setName($name)Sets the name of the suite. (from PHPUnit_Framework_TestSuite)
setRunTestInSeparateProcess($runTestInSeparateProcess) (from PHPUnit_Framework_TestSuite)
setTests(array $tests)Set tests of the test suite (from PHPUnit_Framework_TestSuite)
setUp()Template Method that is called before the tests of this test suite are run. (from PHPUnit_Framework_TestSuite)
skipTest($class, $methodName, $message) (from PHPUnit_Framework_TestSuite)
tearDown()Template Method that is called after the tests of this test suite have finished running. (from PHPUnit_Framework_TestSuite)
testAt($index)Returns the test at the given index. (from PHPUnit_Framework_TestSuite)
tests()Returns the tests as an enumeration. (from PHPUnit_Framework_TestSuite)
toString()Returns a string representation of the test suite. (from PHPUnit_Framework_TestSuite)
warning($message) (from PHPUnit_Framework_TestSuite)

public function setDependencies(array $dependencies)

Sets the dependencies of a TestCase.

Parameters:
array - $dependencies