RequiresPhp
extends Metadata
in package
FinalYes
Tags
Table of Contents
Constants
- CLASS_LEVEL = 0
- METHOD_LEVEL = 1
Properties
- $level : int
- $versionRequirement : Requirement
Methods
- after() : After
- afterClass() : AfterClass
- backupGlobalsOnClass() : BackupGlobals
- backupGlobalsOnMethod() : BackupGlobals
- backupStaticPropertiesOnClass() : BackupStaticProperties
- backupStaticPropertiesOnMethod() : BackupStaticProperties
- before() : Before
- beforeClass() : BeforeClass
- coversClass() : CoversClass
- coversDefaultClass() : CoversDefaultClass
- coversFunction() : CoversFunction
- coversNothingOnClass() : CoversNothing
- coversNothingOnMethod() : CoversNothing
- coversOnClass() : Covers
- coversOnMethod() : Covers
- dataProvider() : DataProvider
- dependsOnClass() : DependsOnClass
- dependsOnMethod() : DependsOnMethod
- doesNotPerformAssertionsOnClass() : DoesNotPerformAssertions
- doesNotPerformAssertionsOnMethod() : DoesNotPerformAssertions
- excludeGlobalVariableFromBackupOnClass() : ExcludeGlobalVariableFromBackup
- excludeGlobalVariableFromBackupOnMethod() : ExcludeGlobalVariableFromBackup
- excludeStaticPropertyFromBackupOnClass() : ExcludeStaticPropertyFromBackup
- excludeStaticPropertyFromBackupOnMethod() : ExcludeStaticPropertyFromBackup
- groupOnClass() : Group
- groupOnMethod() : Group
- ignoreClassForCodeCoverage() : IgnoreClassForCodeCoverage
- ignoreDeprecationsOnClass() : IgnoreDeprecations
- ignoreDeprecationsOnMethod() : IgnoreDeprecations
- ignoreFunctionForCodeCoverage() : IgnoreFunctionForCodeCoverage
- ignoreMethodForCodeCoverage() : IgnoreMethodForCodeCoverage
- isAfter() : bool
- isAfterClass() : bool
- isBackupGlobals() : bool
- isBackupStaticProperties() : bool
- isBefore() : bool
- isBeforeClass() : bool
- isClassLevel() : bool
- isCovers() : bool
- isCoversClass() : bool
- isCoversDefaultClass() : bool
- isCoversFunction() : bool
- isCoversNothing() : bool
- isDataProvider() : bool
- isDependsOnClass() : bool
- isDependsOnMethod() : bool
- isDoesNotPerformAssertions() : bool
- isExcludeGlobalVariableFromBackup() : bool
- isExcludeStaticPropertyFromBackup() : bool
- isGroup() : bool
- isIgnoreClassForCodeCoverage() : bool
- isIgnoreDeprecations() : bool
- isIgnoreFunctionForCodeCoverage() : bool
- isIgnoreMethodForCodeCoverage() : bool
- isMethodLevel() : bool
- isPostCondition() : bool
- isPreCondition() : bool
- isPreserveGlobalState() : bool
- isRequiresFunction() : bool
- isRequiresMethod() : bool
- isRequiresOperatingSystem() : bool
- isRequiresOperatingSystemFamily() : bool
- isRequiresPhp() : bool
- isRequiresPhpExtension() : bool
- isRequiresPhpunit() : bool
- isRequiresSetting() : bool
- isRunClassInSeparateProcess() : bool
- isRunInSeparateProcess() : bool
- isRunTestsInSeparateProcesses() : bool
- isTest() : bool
- isTestDox() : bool
- isTestWith() : bool
- isUses() : bool
- isUsesClass() : bool
- isUsesDefaultClass() : bool
- isUsesFunction() : bool
- isWithoutErrorHandler() : bool
- postCondition() : PostCondition
- preCondition() : PreCondition
- preserveGlobalStateOnClass() : PreserveGlobalState
- preserveGlobalStateOnMethod() : PreserveGlobalState
- requiresFunctionOnClass() : RequiresFunction
- requiresFunctionOnMethod() : RequiresFunction
- requiresMethodOnClass() : RequiresMethod
- requiresMethodOnMethod() : RequiresMethod
- requiresOperatingSystemFamilyOnClass() : RequiresOperatingSystemFamily
- requiresOperatingSystemFamilyOnMethod() : RequiresOperatingSystemFamily
- requiresOperatingSystemOnClass() : RequiresOperatingSystem
- requiresOperatingSystemOnMethod() : RequiresOperatingSystem
- requiresPhpExtensionOnClass() : RequiresPhpExtension
- requiresPhpExtensionOnMethod() : RequiresPhpExtension
- requiresPhpOnClass() : RequiresPhp
- requiresPhpOnMethod() : RequiresPhp
- requiresPhpunitOnClass() : RequiresPhpunit
- requiresPhpunitOnMethod() : RequiresPhpunit
- requiresSettingOnClass() : RequiresSetting
- requiresSettingOnMethod() : RequiresSetting
- runClassInSeparateProcess() : RunClassInSeparateProcess
- runInSeparateProcess() : RunInSeparateProcess
- runTestsInSeparateProcesses() : RunTestsInSeparateProcesses
- test() : Test
- testDoxOnClass() : TestDox
- testDoxOnMethod() : TestDox
- testWith() : TestWith
- usesClass() : UsesClass
- usesDefaultClass() : UsesDefaultClass
- usesFunction() : UsesFunction
- usesOnClass() : Uses
- usesOnMethod() : Uses
- versionRequirement() : Requirement
- withoutErrorHandler() : WithoutErrorHandler
- __construct() : mixed
Constants
CLASS_LEVEL
private
mixed
CLASS_LEVEL
= 0
METHOD_LEVEL
private
mixed
METHOD_LEVEL
= 1
Properties
$level read-only
private
int
$level
Tags
$versionRequirement read-only
private
Requirement
$versionRequirement
Methods
after()
public
static after() : After
Return values
AfterafterClass()
public
static afterClass() : AfterClass
Return values
AfterClassbackupGlobalsOnClass()
public
static backupGlobalsOnClass(bool $enabled) : BackupGlobals
Parameters
- $enabled : bool
Return values
BackupGlobalsbackupGlobalsOnMethod()
public
static backupGlobalsOnMethod(bool $enabled) : BackupGlobals
Parameters
- $enabled : bool
Return values
BackupGlobalsbackupStaticPropertiesOnClass()
public
static backupStaticPropertiesOnClass(bool $enabled) : BackupStaticProperties
Parameters
- $enabled : bool
Return values
BackupStaticPropertiesbackupStaticPropertiesOnMethod()
public
static backupStaticPropertiesOnMethod(bool $enabled) : BackupStaticProperties
Parameters
- $enabled : bool
Return values
BackupStaticPropertiesbefore()
public
static before() : Before
Return values
BeforebeforeClass()
public
static beforeClass() : BeforeClass
Return values
BeforeClasscoversClass()
public
static coversClass(string $className) : CoversClass
Parameters
- $className : string
Tags
Return values
CoversClasscoversDefaultClass()
public
static coversDefaultClass(string $className) : CoversDefaultClass
Parameters
- $className : string
Tags
Return values
CoversDefaultClasscoversFunction()
public
static coversFunction(string $functionName) : CoversFunction
Parameters
- $functionName : string
Tags
Return values
CoversFunctioncoversNothingOnClass()
public
static coversNothingOnClass() : CoversNothing
Return values
CoversNothingcoversNothingOnMethod()
public
static coversNothingOnMethod() : CoversNothing
Return values
CoversNothingcoversOnClass()
public
static coversOnClass(string $target) : Covers
Parameters
- $target : string
Tags
Return values
CoverscoversOnMethod()
public
static coversOnMethod(string $target) : Covers
Parameters
- $target : string
Tags
Return values
CoversdataProvider()
public
static dataProvider(string $className, string $methodName) : DataProvider
Parameters
- $className : string
- $methodName : string
Tags
Return values
DataProviderdependsOnClass()
public
static dependsOnClass(string $className, bool $deepClone, bool $shallowClone) : DependsOnClass
Parameters
- $className : string
- $deepClone : bool
- $shallowClone : bool
Tags
Return values
DependsOnClassdependsOnMethod()
public
static dependsOnMethod(string $className, string $methodName, bool $deepClone, bool $shallowClone) : DependsOnMethod
Parameters
- $className : string
- $methodName : string
- $deepClone : bool
- $shallowClone : bool
Tags
Return values
DependsOnMethoddoesNotPerformAssertionsOnClass()
public
static doesNotPerformAssertionsOnClass() : DoesNotPerformAssertions
Return values
DoesNotPerformAssertionsdoesNotPerformAssertionsOnMethod()
public
static doesNotPerformAssertionsOnMethod() : DoesNotPerformAssertions
Return values
DoesNotPerformAssertionsexcludeGlobalVariableFromBackupOnClass()
public
static excludeGlobalVariableFromBackupOnClass(string $globalVariableName) : ExcludeGlobalVariableFromBackup
Parameters
- $globalVariableName : string
Tags
Return values
ExcludeGlobalVariableFromBackupexcludeGlobalVariableFromBackupOnMethod()
public
static excludeGlobalVariableFromBackupOnMethod(string $globalVariableName) : ExcludeGlobalVariableFromBackup
Parameters
- $globalVariableName : string
Tags
Return values
ExcludeGlobalVariableFromBackupexcludeStaticPropertyFromBackupOnClass()
public
static excludeStaticPropertyFromBackupOnClass(string $className, string $propertyName) : ExcludeStaticPropertyFromBackup
Parameters
- $className : string
- $propertyName : string
Tags
Return values
ExcludeStaticPropertyFromBackupexcludeStaticPropertyFromBackupOnMethod()
public
static excludeStaticPropertyFromBackupOnMethod(string $className, string $propertyName) : ExcludeStaticPropertyFromBackup
Parameters
- $className : string
- $propertyName : string
Tags
Return values
ExcludeStaticPropertyFromBackupgroupOnClass()
public
static groupOnClass(string $groupName) : Group
Parameters
- $groupName : string
Tags
Return values
GroupgroupOnMethod()
public
static groupOnMethod(string $groupName) : Group
Parameters
- $groupName : string
Tags
Return values
GroupignoreClassForCodeCoverage()
public
static ignoreClassForCodeCoverage(string $className) : IgnoreClassForCodeCoverage
Parameters
- $className : string
Tags
Return values
IgnoreClassForCodeCoverageignoreDeprecationsOnClass()
public
static ignoreDeprecationsOnClass() : IgnoreDeprecations
Return values
IgnoreDeprecationsignoreDeprecationsOnMethod()
public
static ignoreDeprecationsOnMethod() : IgnoreDeprecations
Return values
IgnoreDeprecationsignoreFunctionForCodeCoverage()
public
static ignoreFunctionForCodeCoverage(string $functionName) : IgnoreFunctionForCodeCoverage
Parameters
- $functionName : string
Tags
Return values
IgnoreFunctionForCodeCoverageignoreMethodForCodeCoverage()
public
static ignoreMethodForCodeCoverage(string $className, string $methodName) : IgnoreMethodForCodeCoverage
Parameters
- $className : string
- $methodName : string
Tags
Return values
IgnoreMethodForCodeCoverageisAfter()
public
isAfter() : bool
Tags
Return values
boolisAfterClass()
public
isAfterClass() : bool
Tags
Return values
boolisBackupGlobals()
public
isBackupGlobals() : bool
Tags
Return values
boolisBackupStaticProperties()
public
isBackupStaticProperties() : bool
Tags
Return values
boolisBefore()
public
isBefore() : bool
Tags
Return values
boolisBeforeClass()
public
isBeforeClass() : bool
Tags
Return values
boolisClassLevel()
public
isClassLevel() : bool
Return values
boolisCovers()
public
isCovers() : bool
Tags
Return values
boolisCoversClass()
public
isCoversClass() : bool
Tags
Return values
boolisCoversDefaultClass()
public
isCoversDefaultClass() : bool
Tags
Return values
boolisCoversFunction()
public
isCoversFunction() : bool
Tags
Return values
boolisCoversNothing()
public
isCoversNothing() : bool
Tags
Return values
boolisDataProvider()
public
isDataProvider() : bool
Tags
Return values
boolisDependsOnClass()
public
isDependsOnClass() : bool
Tags
Return values
boolisDependsOnMethod()
public
isDependsOnMethod() : bool
Tags
Return values
boolisDoesNotPerformAssertions()
public
isDoesNotPerformAssertions() : bool
Tags
Return values
boolisExcludeGlobalVariableFromBackup()
public
isExcludeGlobalVariableFromBackup() : bool
Tags
Return values
boolisExcludeStaticPropertyFromBackup()
public
isExcludeStaticPropertyFromBackup() : bool
Tags
Return values
boolisGroup()
public
isGroup() : bool
Tags
Return values
boolisIgnoreClassForCodeCoverage()
public
isIgnoreClassForCodeCoverage() : bool
Tags
Return values
boolisIgnoreDeprecations()
public
isIgnoreDeprecations() : bool
Tags
Return values
boolisIgnoreFunctionForCodeCoverage()
public
isIgnoreFunctionForCodeCoverage() : bool
Tags
Return values
boolisIgnoreMethodForCodeCoverage()
public
isIgnoreMethodForCodeCoverage() : bool
Tags
Return values
boolisMethodLevel()
public
isMethodLevel() : bool
Return values
boolisPostCondition()
public
isPostCondition() : bool
Tags
Return values
boolisPreCondition()
public
isPreCondition() : bool
Tags
Return values
boolisPreserveGlobalState()
public
isPreserveGlobalState() : bool
Tags
Return values
boolisRequiresFunction()
public
isRequiresFunction() : bool
Tags
Return values
boolisRequiresMethod()
public
isRequiresMethod() : bool
Tags
Return values
boolisRequiresOperatingSystem()
public
isRequiresOperatingSystem() : bool
Tags
Return values
boolisRequiresOperatingSystemFamily()
public
isRequiresOperatingSystemFamily() : bool
Tags
Return values
boolisRequiresPhp()
public
isRequiresPhp() : bool
Tags
Return values
boolisRequiresPhpExtension()
public
isRequiresPhpExtension() : bool
Tags
Return values
boolisRequiresPhpunit()
public
isRequiresPhpunit() : bool
Tags
Return values
boolisRequiresSetting()
public
isRequiresSetting() : bool
Tags
Return values
boolisRunClassInSeparateProcess()
public
isRunClassInSeparateProcess() : bool
Tags
Return values
boolisRunInSeparateProcess()
public
isRunInSeparateProcess() : bool
Tags
Return values
boolisRunTestsInSeparateProcesses()
public
isRunTestsInSeparateProcesses() : bool
Tags
Return values
boolisTest()
public
isTest() : bool
Tags
Return values
boolisTestDox()
public
isTestDox() : bool
Tags
Return values
boolisTestWith()
public
isTestWith() : bool
Tags
Return values
boolisUses()
public
isUses() : bool
Tags
Return values
boolisUsesClass()
public
isUsesClass() : bool
Tags
Return values
boolisUsesDefaultClass()
public
isUsesDefaultClass() : bool
Tags
Return values
boolisUsesFunction()
public
isUsesFunction() : bool
Tags
Return values
boolisWithoutErrorHandler()
public
isWithoutErrorHandler() : bool
Tags
Return values
boolpostCondition()
public
static postCondition() : PostCondition
Return values
PostConditionpreCondition()
public
static preCondition() : PreCondition
Return values
PreConditionpreserveGlobalStateOnClass()
public
static preserveGlobalStateOnClass(bool $enabled) : PreserveGlobalState
Parameters
- $enabled : bool
Return values
PreserveGlobalStatepreserveGlobalStateOnMethod()
public
static preserveGlobalStateOnMethod(bool $enabled) : PreserveGlobalState
Parameters
- $enabled : bool
Return values
PreserveGlobalStaterequiresFunctionOnClass()
public
static requiresFunctionOnClass(string $functionName) : RequiresFunction
Parameters
- $functionName : string
Tags
Return values
RequiresFunctionrequiresFunctionOnMethod()
public
static requiresFunctionOnMethod(string $functionName) : RequiresFunction
Parameters
- $functionName : string
Tags
Return values
RequiresFunctionrequiresMethodOnClass()
public
static requiresMethodOnClass(string $className, string $methodName) : RequiresMethod
Parameters
- $className : string
- $methodName : string
Tags
Return values
RequiresMethodrequiresMethodOnMethod()
public
static requiresMethodOnMethod(string $className, string $methodName) : RequiresMethod
Parameters
- $className : string
- $methodName : string
Tags
Return values
RequiresMethodrequiresOperatingSystemFamilyOnClass()
public
static requiresOperatingSystemFamilyOnClass(string $operatingSystemFamily) : RequiresOperatingSystemFamily
Parameters
- $operatingSystemFamily : string
Tags
Return values
RequiresOperatingSystemFamilyrequiresOperatingSystemFamilyOnMethod()
public
static requiresOperatingSystemFamilyOnMethod(string $operatingSystemFamily) : RequiresOperatingSystemFamily
Parameters
- $operatingSystemFamily : string
Tags
Return values
RequiresOperatingSystemFamilyrequiresOperatingSystemOnClass()
public
static requiresOperatingSystemOnClass(string $operatingSystem) : RequiresOperatingSystem
Parameters
- $operatingSystem : string
Tags
Return values
RequiresOperatingSystemrequiresOperatingSystemOnMethod()
public
static requiresOperatingSystemOnMethod(string $operatingSystem) : RequiresOperatingSystem
Parameters
- $operatingSystem : string
Tags
Return values
RequiresOperatingSystemrequiresPhpExtensionOnClass()
public
static requiresPhpExtensionOnClass(string $extension, Requirement|null $versionRequirement) : RequiresPhpExtension
Parameters
- $extension : string
- $versionRequirement : Requirement|null
Tags
Return values
RequiresPhpExtensionrequiresPhpExtensionOnMethod()
public
static requiresPhpExtensionOnMethod(string $extension, Requirement|null $versionRequirement) : RequiresPhpExtension
Parameters
- $extension : string
- $versionRequirement : Requirement|null
Tags
Return values
RequiresPhpExtensionrequiresPhpOnClass()
public
static requiresPhpOnClass(Requirement $versionRequirement) : RequiresPhp
Parameters
- $versionRequirement : Requirement
Return values
RequiresPhprequiresPhpOnMethod()
public
static requiresPhpOnMethod(Requirement $versionRequirement) : RequiresPhp
Parameters
- $versionRequirement : Requirement
Return values
RequiresPhprequiresPhpunitOnClass()
public
static requiresPhpunitOnClass(Requirement $versionRequirement) : RequiresPhpunit
Parameters
- $versionRequirement : Requirement
Return values
RequiresPhpunitrequiresPhpunitOnMethod()
public
static requiresPhpunitOnMethod(Requirement $versionRequirement) : RequiresPhpunit
Parameters
- $versionRequirement : Requirement
Return values
RequiresPhpunitrequiresSettingOnClass()
public
static requiresSettingOnClass(string $setting, string $value) : RequiresSetting
Parameters
- $setting : string
- $value : string
Tags
Return values
RequiresSettingrequiresSettingOnMethod()
public
static requiresSettingOnMethod(string $setting, string $value) : RequiresSetting
Parameters
- $setting : string
- $value : string
Tags
Return values
RequiresSettingrunClassInSeparateProcess()
public
static runClassInSeparateProcess() : RunClassInSeparateProcess
Return values
RunClassInSeparateProcessrunInSeparateProcess()
public
static runInSeparateProcess() : RunInSeparateProcess
Return values
RunInSeparateProcessrunTestsInSeparateProcesses()
public
static runTestsInSeparateProcesses() : RunTestsInSeparateProcesses
Return values
RunTestsInSeparateProcessestest()
public
static test() : Test
Return values
TesttestDoxOnClass()
public
static testDoxOnClass(string $text) : TestDox
Parameters
- $text : string
Tags
Return values
TestDoxtestDoxOnMethod()
public
static testDoxOnMethod(string $text) : TestDox
Parameters
- $text : string
Tags
Return values
TestDoxtestWith()
public
static testWith(array<string|int, mixed> $data) : TestWith
Parameters
- $data : array<string|int, mixed>
Return values
TestWithusesClass()
public
static usesClass(string $className) : UsesClass
Parameters
- $className : string
Tags
Return values
UsesClassusesDefaultClass()
public
static usesDefaultClass(string $className) : UsesDefaultClass
Parameters
- $className : string
Tags
Return values
UsesDefaultClassusesFunction()
public
static usesFunction(string $functionName) : UsesFunction
Parameters
- $functionName : string
Tags
Return values
UsesFunctionusesOnClass()
public
static usesOnClass(string $target) : Uses
Parameters
- $target : string
Tags
Return values
UsesusesOnMethod()
public
static usesOnMethod(string $target) : Uses
Parameters
- $target : string
Tags
Return values
UsesversionRequirement()
public
versionRequirement() : Requirement
Return values
RequirementwithoutErrorHandler()
public
static withoutErrorHandler() : WithoutErrorHandler
Return values
WithoutErrorHandler__construct()
protected
__construct(int $level, Requirement $versionRequirement) : mixed
Parameters
- $level : int
- $versionRequirement : Requirement