- \PHPUnit_Framework_TestSuite
- \PHPUnit_Extensions_GroupTestSuite
class (none) \ PHPUnit_Extensions_GroupTestSuite
- All implemented interfaces:
- Countable, PHPUnit_Framework_Test, PHPUnit_Framework_SelfDescribing, IteratorAggregate
We have a TestSuite object A. In TestSuite object A we have Tests tagged with @group. We want a TestSuite object B that contains TestSuite objects C, D, ... for the Tests tagged with @group C, @group D, ... Running the Tests from TestSuite object B results in Tests tagged with both
$suite = new PHPUnit_Extensions_GroupTestSuite($A, array('C', 'D'));
Method Summary
Name | Description |
---|---|
__construct(PHPUnit_Framework_TestSuite $suite, array $groups) | Constructs a new TestSuite: |
Inherited Method Summary
public function __construct(PHPUnit_Framework_TestSuite $suite, array $groups)
Constructs a new TestSuite: (from __construct)
- 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. (from __construct)
- Overrides:
- __construct($theClass = "", $name = "")
- Parameters:
mixed
- $theClassstring
- $name- Throws:
- PHPUnit_Framework_Exception