class TestSuite
Same name in this branch
- 11.1.x vendor/phpunit/phpunit/src/Framework/TestSuite.php \PHPUnit\Framework\TestSuite
- 11.1.x vendor/phpunit/phpunit/src/TextUI/Configuration/Value/TestSuite.php \PHPUnit\TextUI\Configuration\TestSuite
@psalm-immutable
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
Hierarchy
- class \PHPUnit\Event\TestSuite\TestSuite
Expanded class hierarchy of TestSuite
3 files declare their use of TestSuite
- DispatchingEmitter.php in vendor/
phpunit/ phpunit/ src/ Event/ Emitter/ DispatchingEmitter.php - Emitter.php in vendor/
phpunit/ phpunit/ src/ Event/ Emitter/ Emitter.php - ExecutionStarted.php in vendor/
phpunit/ phpunit/ src/ Event/ Events/ TestRunner/ ExecutionStarted.php
3 string references to 'TestSuite'
- Junit::generateFileReport in vendor/
squizlabs/ php_codesniffer/ src/ Reports/ Junit.php - Generate a partial report for a single processed file.
- JunitXmlLogger::testSuiteStarted in vendor/
phpunit/ phpunit/ src/ Logging/ JUnit/ JunitXmlLogger.php - Loader::getTestSuiteElements in vendor/
phpunit/ phpunit/ src/ TextUI/ Configuration/ Xml/ Loader.php - @psalm-return list<DOMElement>
File
-
vendor/
phpunit/ phpunit/ src/ Event/ Value/ TestSuite/ TestSuite.php, line 19
Namespace
PHPUnit\Event\TestSuiteView source
abstract class TestSuite {
/**
* @psalm-var non-empty-string
*/
private readonly string $name;
private readonly int $count;
private readonly TestCollection $tests;
/**
* @psalm-param non-empty-string $name
*/
public function __construct(string $name, int $size, TestCollection $tests) {
$this->name = $name;
$this->count = $size;
$this->tests = $tests;
}
/**
* @psalm-return non-empty-string
*/
public function name() : string {
return $this->name;
}
public function count() : int {
return $this->count;
}
public function tests() : TestCollection {
return $this->tests;
}
/**
* @psalm-assert-if-true TestSuiteWithName $this
*/
public function isWithName() : bool {
return false;
}
/**
* @psalm-assert-if-true TestSuiteForTestClass $this
*/
public function isForTestClass() : bool {
return false;
}
/**
* @psalm-assert-if-true TestSuiteForTestMethodWithDataProvider $this
*/
public function isForTestMethodWithDataProvider() : bool {
return false;
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overrides |
---|---|---|---|---|
TestSuite::$count | private | property | ||
TestSuite::$name | private | property | @psalm-var non-empty-string | |
TestSuite::$tests | private | property | ||
TestSuite::count | public | function | ||
TestSuite::isForTestClass | public | function | @psalm-assert-if-true TestSuiteForTestClass $this | 1 |
TestSuite::isForTestMethodWithDataProvider | public | function | @psalm-assert-if-true TestSuiteForTestMethodWithDataProvider $this | 1 |
TestSuite::isWithName | public | function | @psalm-assert-if-true TestSuiteWithName $this | 1 |
TestSuite::name | public | function | @psalm-return non-empty-string | |
TestSuite::tests | public | function | ||
TestSuite::__construct | public | function | @psalm-param non-empty-string $name | 2 |