|
static | describe (\PHPUnit\Framework\Test $test) |
|
static | describeAsString (\PHPUnit\Framework\Test $test) |
|
static | getLinesToBeCovered (string $className, string $methodName) |
|
static | getLinesToBeUsed (string $className, string $methodName) |
|
static | requiresCodeCoverageDataCollection (TestCase $test) |
|
static | getRequirements (string $className, string $methodName) |
|
static | getMissingRequirements (string $className, string $methodName) |
|
static | getExpectedException (string $className, string $methodName) |
|
static | getProvidedData (string $className, string $methodName) |
|
static | parseTestMethodAnnotations (string $className, ?string $methodName='') |
|
static | getInlineAnnotations (string $className, string $methodName) |
|
static | getBackupSettings (string $className, string $methodName) |
|
static | getDependencies (string $className, string $methodName) |
|
static | getGroups (string $className, ?string $methodName='') |
|
static | getSize (string $className, ?string $methodName) |
|
static | getProcessIsolationSettings (string $className, string $methodName) |
|
static | getClassProcessIsolationSettings (string $className, string $methodName) |
|
static | getPreserveGlobalStateSettings (string $className, string $methodName) |
|
static | getHookMethods (string $className) |
|
static | isTestMethod (\ReflectionMethod $method) |
|
◆ describe()
◆ describeAsString()
◆ getBackupSettings()
static PHPUnit\Util\Test::getBackupSettings |
( |
string |
$className, |
|
|
string |
$methodName |
|
) |
| |
|
static |
@psalm-param class-string $className
◆ getClassProcessIsolationSettings()
static PHPUnit\Util\Test::getClassProcessIsolationSettings |
( |
string |
$className, |
|
|
string |
$methodName |
|
) |
| |
|
static |
@psalm-param class-string $className
◆ getDependencies()
static PHPUnit\Util\Test::getDependencies |
( |
string |
$className, |
|
|
string |
$methodName |
|
) |
| |
|
static |
@psalm-param class-string $className
◆ getExpectedException()
static PHPUnit\Util\Test::getExpectedException |
( |
string |
$className, |
|
|
string |
$methodName |
|
) |
| |
|
static |
Returns the expected exception for a test.
- Returns
- array|false
- Deprecated:
- @codeCoverageIgnore @psalm-param class-string $className
◆ getGroups()
static PHPUnit\Util\Test::getGroups |
( |
string |
$className, |
|
|
?string |
$methodName = '' |
|
) |
| |
|
static |
@psalm-param class-string $className
◆ getHookMethods()
static PHPUnit\Util\Test::getHookMethods |
( |
string |
$className | ) |
|
|
static |
@psalm-param class-string $className
◆ getInlineAnnotations()
static PHPUnit\Util\Test::getInlineAnnotations |
( |
string |
$className, |
|
|
string |
$methodName |
|
) |
| |
|
static |
@psalm-param class-string $className
◆ getLinesToBeCovered()
static PHPUnit\Util\Test::getLinesToBeCovered |
( |
string |
$className, |
|
|
string |
$methodName |
|
) |
| |
|
static |
- Exceptions
-
- Returns
- array|bool @psalm-param class-string $className
◆ getLinesToBeUsed()
static PHPUnit\Util\Test::getLinesToBeUsed |
( |
string |
$className, |
|
|
string |
$methodName |
|
) |
| |
|
static |
Returns lines of code specified with the @uses annotation.
- Exceptions
-
CodeCoverageException | @psalm-param class-string $className |
◆ getMissingRequirements()
static PHPUnit\Util\Test::getMissingRequirements |
( |
string |
$className, |
|
|
string |
$methodName |
|
) |
| |
|
static |
Returns the missing requirements for a test.
- Exceptions
-
Exception | |
Warning | @psalm-param class-string $className |
◆ getPreserveGlobalStateSettings()
static PHPUnit\Util\Test::getPreserveGlobalStateSettings |
( |
string |
$className, |
|
|
string |
$methodName |
|
) |
| |
|
static |
@psalm-param class-string $className
◆ getProcessIsolationSettings()
static PHPUnit\Util\Test::getProcessIsolationSettings |
( |
string |
$className, |
|
|
string |
$methodName |
|
) |
| |
|
static |
@psalm-param class-string $className
◆ getProvidedData()
static PHPUnit\Util\Test::getProvidedData |
( |
string |
$className, |
|
|
string |
$methodName |
|
) |
| |
|
static |
Returns the provided data for a method.
- Exceptions
-
Exception | @psalm-param class-string $className |
◆ getRequirements()
static PHPUnit\Util\Test::getRequirements |
( |
string |
$className, |
|
|
string |
$methodName |
|
) |
| |
|
static |
- Exceptions
-
Exception | @psalm-param class-string $className |
◆ getSize()
static PHPUnit\Util\Test::getSize |
( |
string |
$className, |
|
|
?string |
$methodName |
|
) |
| |
|
static |
@psalm-param class-string $className
◆ isTestMethod()
static PHPUnit\Util\Test::isTestMethod |
( |
\ReflectionMethod |
$method | ) |
|
|
static |
◆ parseTestMethodAnnotations()
static PHPUnit\Util\Test::parseTestMethodAnnotations |
( |
string |
$className, |
|
|
?string |
$methodName = '' |
|
) |
| |
|
static |
@psalm-param class-string $className
◆ requiresCodeCoverageDataCollection()
static PHPUnit\Util\Test::requiresCodeCoverageDataCollection |
( |
TestCase |
$test | ) |
|
|
static |
◆ LARGE
const PHPUnit\Util\Test::LARGE = 2 |
◆ MEDIUM
const PHPUnit\Util\Test::MEDIUM = 1 |
◆ SMALL
const PHPUnit\Util\Test::SMALL = 0 |
◆ UNKNOWN
const PHPUnit\Util\Test::UNKNOWN = -1 |
The documentation for this class was generated from the following file:
- vendor/phpunit/phpunit/src/Util/Test.php