file-fetcher
Public Member Functions | List of all members
PHPUnit\SelfTest\Basic\StatusTest Class Reference
Inheritance diagram for PHPUnit\SelfTest\Basic\StatusTest:
PHPUnit\Framework\TestCase PHPUnit\Framework\Assert PHPUnit\Framework\SelfDescribing PHPUnit\Framework\Test

Detailed Description

@covers Foo

@uses Bar

@testdox Test result status with and without message

Public Member Functions

 testSuccess ()
 
 testFailure ()
 
 testError ()
 
 testIncomplete ()
 
 testSkipped ()
 
 testRisky ()
 
 testWarning ()
 
 testSuccessWithMessage ()
 
 testFailureWithMessage ()
 
 testErrorWithMessage ()
 
 testIncompleteWithMessage ()
 
 testSkippedWithMessage ()
 
 testRiskyWithMessage ()
 
 testWarningWithMessage ()
 
- Public Member Functions inherited from PHPUnit\Framework\TestCase
 __construct ($name=null, array $data=[], $dataName='')
 
 toString ()
 
 count ()
 
 getActualOutputForAssertion ()
 
 expectOutputRegex (string $expectedRegex)
 
 expectOutputString (string $expectedString)
 
 expectException (string $exception)
 
 expectExceptionCode ($code)
 
 expectExceptionMessage (string $message)
 
 expectExceptionMessageMatches (string $regularExpression)
 
 expectExceptionMessageRegExp (string $regularExpression)
 
 expectExceptionObject (\Exception $exception)
 
 expectNotToPerformAssertions ()
 
 expectDeprecation ()
 
 expectDeprecationMessage (string $message)
 
 expectDeprecationMessageMatches (string $regularExpression)
 
 expectNotice ()
 
 expectNoticeMessage (string $message)
 
 expectNoticeMessageMatches (string $regularExpression)
 
 expectWarning ()
 
 expectWarningMessage (string $message)
 
 expectWarningMessageMatches (string $regularExpression)
 
 expectError ()
 
 expectErrorMessage (string $message)
 
 expectErrorMessageMatches (string $regularExpression)
 
 getStatus ()
 
 markAsRisky ()
 
 getStatusMessage ()
 
 hasFailed ()
 
 run (TestResult $result=null)
 
 getMockBuilder ($className)
 
 registerComparator (Comparator $comparator)
 
 setUseErrorHandler (bool $useErrorHandler)
 
 doubledTypes ()
 
 getGroups ()
 
 setGroups (array $groups)
 
 getAnnotations ()
 
 getName (bool $withDataSet=true)
 
 getSize ()
 
 hasSize ()
 
 isSmall ()
 
 isMedium ()
 
 isLarge ()
 
 getActualOutput ()
 
 hasOutput ()
 
 doesNotPerformAssertions ()
 
 hasExpectationOnOutput ()
 
 getExpectedException ()
 
 getExpectedExceptionCode ()
 
 getExpectedExceptionMessage ()
 
 getExpectedExceptionMessageRegExp ()
 
 setRegisterMockObjectsFromTestArgumentsRecursively (bool $flag)
 
 runBare ()
 
 setName (string $name)
 
 setDependencies (array $dependencies)
 
 getDependencies ()
 
 hasDependencies ()
 
 setDependencyInput (array $dependencyInput)
 
 getDependencyInput ()
 
 setBeStrictAboutChangesToGlobalState (?bool $beStrictAboutChangesToGlobalState)
 
 setBackupGlobals (?bool $backupGlobals)
 
 setBackupStaticAttributes (?bool $backupStaticAttributes)
 
 setRunTestInSeparateProcess (bool $runTestInSeparateProcess)
 
 setRunClassInSeparateProcess (bool $runClassInSeparateProcess)
 
 setPreserveGlobalState (bool $preserveGlobalState)
 
 setInIsolation (bool $inIsolation)
 
 isInIsolation ()
 
 getResult ()
 
 setResult ($result)
 
 setOutputCallback (callable $callback)
 
 getTestResultObject ()
 
 setTestResultObject (TestResult $result)
 
 registerMockObject (MockObject $mockObject)
 
 addToAssertionCount (int $count)
 
 getNumAssertions ()
 
 usesDataProvider ()
 
 dataDescription ()
 
 dataName ()
 
 getDataSetAsString (bool $includeData=true)
 
 getProvidedData ()
 
 addWarning (string $warning)
 

Additional Inherited Members

- Static Public Member Functions inherited from PHPUnit\Framework\TestCase
static any ()
 
static never ()
 
static atLeast (int $requiredInvocations)
 
static atLeastOnce ()
 
static once ()
 
static exactly (int $count)
 
static atMost (int $allowedInvocations)
 
static at (int $index)
 
static returnValue ($value)
 
static returnValueMap (array $valueMap)
 
static returnArgument (int $argumentIndex)
 
static returnCallback ($callback)
 
static returnSelf ()
 
static throwException (\Throwable $exception)
 
static onConsecutiveCalls (... $args)
 
static setUpBeforeClass ()
 
static tearDownAfterClass ()
 
- Static Public Member Functions inherited from PHPUnit\Framework\Assert
static assertArrayHasKey ($key, $array, string $message='')
 
static assertArraySubset ($subset, $array, bool $checkForObjectIdentity=false, string $message='')
 
static assertArrayNotHasKey ($key, $array, string $message='')
 
static assertContains ($needle, $haystack, string $message='', bool $ignoreCase=false, bool $checkForObjectIdentity=true, bool $checkForNonObjectIdentity=false)
 
static assertContainsEquals ($needle, iterable $haystack, string $message='')
 
static assertAttributeContains ($needle, string $haystackAttributeName, $haystackClassOrObject, string $message='', bool $ignoreCase=false, bool $checkForObjectIdentity=true, bool $checkForNonObjectIdentity=false)
 
static assertNotContains ($needle, $haystack, string $message='', bool $ignoreCase=false, bool $checkForObjectIdentity=true, bool $checkForNonObjectIdentity=false)
 
static assertNotContainsEquals ($needle, iterable $haystack, string $message='')
 
static assertAttributeNotContains ($needle, string $haystackAttributeName, $haystackClassOrObject, string $message='', bool $ignoreCase=false, bool $checkForObjectIdentity=true, bool $checkForNonObjectIdentity=false)
 
static assertContainsOnly (string $type, iterable $haystack, ?bool $isNativeType=null, string $message='')
 
static assertContainsOnlyInstancesOf (string $className, iterable $haystack, string $message='')
 
static assertAttributeContainsOnly (string $type, string $haystackAttributeName, $haystackClassOrObject, ?bool $isNativeType=null, string $message='')
 
static assertNotContainsOnly (string $type, iterable $haystack, ?bool $isNativeType=null, string $message='')
 
static assertAttributeNotContainsOnly (string $type, string $haystackAttributeName, $haystackClassOrObject, ?bool $isNativeType=null, string $message='')
 
static assertCount (int $expectedCount, $haystack, string $message='')
 
static assertAttributeCount (int $expectedCount, string $haystackAttributeName, $haystackClassOrObject, string $message='')
 
static assertNotCount (int $expectedCount, $haystack, string $message='')
 
static assertAttributeNotCount (int $expectedCount, string $haystackAttributeName, $haystackClassOrObject, string $message='')
 
static assertEquals ($expected, $actual, string $message='', float $delta=0.0, int $maxDepth=10, bool $canonicalize=false, bool $ignoreCase=false)
 
static assertEqualsCanonicalizing ($expected, $actual, string $message='')
 
static assertEqualsIgnoringCase ($expected, $actual, string $message='')
 
static assertEqualsWithDelta ($expected, $actual, float $delta, string $message='')
 
static assertAttributeEquals ($expected, string $actualAttributeName, $actualClassOrObject, string $message='', float $delta=0.0, int $maxDepth=10, bool $canonicalize=false, bool $ignoreCase=false)
 
static assertNotEquals ($expected, $actual, string $message='', $delta=0.0, $maxDepth=10, $canonicalize=false, $ignoreCase=false)
 
static assertNotEqualsCanonicalizing ($expected, $actual, string $message='')
 
static assertNotEqualsIgnoringCase ($expected, $actual, string $message='')
 
static assertNotEqualsWithDelta ($expected, $actual, float $delta, string $message='')
 
static assertAttributeNotEquals ($expected, string $actualAttributeName, $actualClassOrObject, string $message='', float $delta=0.0, int $maxDepth=10, bool $canonicalize=false, bool $ignoreCase=false)
 
static assertEmpty ($actual, string $message='')
 
static assertAttributeEmpty (string $haystackAttributeName, $haystackClassOrObject, string $message='')
 
static assertNotEmpty ($actual, string $message='')
 
static assertAttributeNotEmpty (string $haystackAttributeName, $haystackClassOrObject, string $message='')
 
static assertGreaterThan ($expected, $actual, string $message='')
 
static assertAttributeGreaterThan ($expected, string $actualAttributeName, $actualClassOrObject, string $message='')
 
static assertGreaterThanOrEqual ($expected, $actual, string $message='')
 
static assertAttributeGreaterThanOrEqual ($expected, string $actualAttributeName, $actualClassOrObject, string $message='')
 
static assertLessThan ($expected, $actual, string $message='')
 
static assertAttributeLessThan ($expected, string $actualAttributeName, $actualClassOrObject, string $message='')
 
static assertLessThanOrEqual ($expected, $actual, string $message='')
 
static assertAttributeLessThanOrEqual ($expected, string $actualAttributeName, $actualClassOrObject, string $message='')
 
static assertFileEquals (string $expected, string $actual, string $message='', bool $canonicalize=false, bool $ignoreCase=false)
 
static assertFileEqualsCanonicalizing (string $expected, string $actual, string $message='')
 
static assertFileEqualsIgnoringCase (string $expected, string $actual, string $message='')
 
static assertFileNotEquals (string $expected, string $actual, string $message='', bool $canonicalize=false, bool $ignoreCase=false)
 
static assertFileNotEqualsCanonicalizing (string $expected, string $actual, string $message='')
 
static assertFileNotEqualsIgnoringCase (string $expected, string $actual, string $message='')
 
static assertStringEqualsFile (string $expectedFile, string $actualString, string $message='', bool $canonicalize=false, bool $ignoreCase=false)
 
static assertStringEqualsFileCanonicalizing (string $expectedFile, string $actualString, string $message='')
 
static assertStringEqualsFileIgnoringCase (string $expectedFile, string $actualString, string $message='')
 
static assertStringNotEqualsFile (string $expectedFile, string $actualString, string $message='', bool $canonicalize=false, bool $ignoreCase=false)
 
static assertStringNotEqualsFileCanonicalizing (string $expectedFile, string $actualString, string $message='')
 
static assertStringNotEqualsFileIgnoringCase (string $expectedFile, string $actualString, string $message='')
 
static assertIsReadable (string $filename, string $message='')
 
static assertNotIsReadable (string $filename, string $message='')
 
static assertIsWritable (string $filename, string $message='')
 
static assertNotIsWritable (string $filename, string $message='')
 
static assertDirectoryExists (string $directory, string $message='')
 
static assertDirectoryNotExists (string $directory, string $message='')
 
static assertDirectoryIsReadable (string $directory, string $message='')
 
static assertDirectoryNotIsReadable (string $directory, string $message='')
 
static assertDirectoryIsWritable (string $directory, string $message='')
 
static assertDirectoryNotIsWritable (string $directory, string $message='')
 
static assertFileExists (string $filename, string $message='')
 
static assertFileNotExists (string $filename, string $message='')
 
static assertFileIsReadable (string $file, string $message='')
 
static assertFileNotIsReadable (string $file, string $message='')
 
static assertFileIsWritable (string $file, string $message='')
 
static assertFileNotIsWritable (string $file, string $message='')
 
static assertTrue ($condition, string $message='')
 
static assertNotTrue ($condition, string $message='')
 
static assertFalse ($condition, string $message='')
 
static assertNotFalse ($condition, string $message='')
 
static assertNull ($actual, string $message='')
 
static assertNotNull ($actual, string $message='')
 
static assertFinite ($actual, string $message='')
 
static assertInfinite ($actual, string $message='')
 
static assertNan ($actual, string $message='')
 
static assertClassHasAttribute (string $attributeName, string $className, string $message='')
 
static assertClassNotHasAttribute (string $attributeName, string $className, string $message='')
 
static assertClassHasStaticAttribute (string $attributeName, string $className, string $message='')
 
static assertClassNotHasStaticAttribute (string $attributeName, string $className, string $message='')
 
static assertObjectHasAttribute (string $attributeName, $object, string $message='')
 
static assertObjectNotHasAttribute (string $attributeName, $object, string $message='')
 
static assertSame ($expected, $actual, string $message='')
 
static assertAttributeSame ($expected, string $actualAttributeName, $actualClassOrObject, string $message='')
 
static assertNotSame ($expected, $actual, string $message='')
 
static assertAttributeNotSame ($expected, string $actualAttributeName, $actualClassOrObject, string $message='')
 
static assertInstanceOf (string $expected, $actual, string $message='')
 
static assertAttributeInstanceOf (string $expected, string $attributeName, $classOrObject, string $message='')
 
static assertNotInstanceOf (string $expected, $actual, string $message='')
 
static assertAttributeNotInstanceOf (string $expected, string $attributeName, $classOrObject, string $message='')
 
static assertInternalType (string $expected, $actual, string $message='')
 
static assertAttributeInternalType (string $expected, string $attributeName, $classOrObject, string $message='')
 
static assertIsArray ($actual, string $message='')
 
static assertIsBool ($actual, string $message='')
 
static assertIsFloat ($actual, string $message='')
 
static assertIsInt ($actual, string $message='')
 
static assertIsNumeric ($actual, string $message='')
 
static assertIsObject ($actual, string $message='')
 
static assertIsResource ($actual, string $message='')
 
static assertIsString ($actual, string $message='')
 
static assertIsScalar ($actual, string $message='')
 
static assertIsCallable ($actual, string $message='')
 
static assertIsIterable ($actual, string $message='')
 
static assertNotInternalType (string $expected, $actual, string $message='')
 
static assertIsNotArray ($actual, string $message='')
 
static assertIsNotBool ($actual, string $message='')
 
static assertIsNotFloat ($actual, string $message='')
 
static assertIsNotInt ($actual, string $message='')
 
static assertIsNotNumeric ($actual, string $message='')
 
static assertIsNotObject ($actual, string $message='')
 
static assertIsNotResource ($actual, string $message='')
 
static assertIsNotString ($actual, string $message='')
 
static assertIsNotScalar ($actual, string $message='')
 
static assertIsNotCallable ($actual, string $message='')
 
static assertIsNotIterable ($actual, string $message='')
 
static assertAttributeNotInternalType (string $expected, string $attributeName, $classOrObject, string $message='')
 
static assertRegExp (string $pattern, string $string, string $message='')
 
static assertNotRegExp (string $pattern, string $string, string $message='')
 
static assertSameSize ($expected, $actual, string $message='')
 
static assertNotSameSize ($expected, $actual, string $message='')
 
static assertStringMatchesFormat (string $format, string $string, string $message='')
 
static assertStringNotMatchesFormat (string $format, string $string, string $message='')
 
static assertStringMatchesFormatFile (string $formatFile, string $string, string $message='')
 
static assertStringNotMatchesFormatFile (string $formatFile, string $string, string $message='')
 
static assertStringStartsWith (string $prefix, string $string, string $message='')
 
static assertStringStartsNotWith ($prefix, $string, string $message='')
 
static assertStringContainsString (string $needle, string $haystack, string $message='')
 
static assertStringContainsStringIgnoringCase (string $needle, string $haystack, string $message='')
 
static assertStringNotContainsString (string $needle, string $haystack, string $message='')
 
static assertStringNotContainsStringIgnoringCase (string $needle, string $haystack, string $message='')
 
static assertStringEndsWith (string $suffix, string $string, string $message='')
 
static assertStringEndsNotWith (string $suffix, string $string, string $message='')
 
static assertXmlFileEqualsXmlFile (string $expectedFile, string $actualFile, string $message='')
 
static assertXmlFileNotEqualsXmlFile (string $expectedFile, string $actualFile, string $message='')
 
static assertXmlStringEqualsXmlFile (string $expectedFile, $actualXml, string $message='')
 
static assertXmlStringNotEqualsXmlFile (string $expectedFile, $actualXml, string $message='')
 
static assertXmlStringEqualsXmlString ($expectedXml, $actualXml, string $message='')
 
static assertXmlStringNotEqualsXmlString ($expectedXml, $actualXml, string $message='')
 
static assertEqualXMLStructure (DOMElement $expectedElement, DOMElement $actualElement, bool $checkAttributes=false, string $message='')
 
static assertThat ($value, Constraint $constraint, string $message='')
 
static assertJson (string $actualJson, string $message='')
 
static assertJsonStringEqualsJsonString (string $expectedJson, string $actualJson, string $message='')
 
static assertJsonStringNotEqualsJsonString ($expectedJson, $actualJson, string $message='')
 
static assertJsonStringEqualsJsonFile (string $expectedFile, string $actualJson, string $message='')
 
static assertJsonStringNotEqualsJsonFile (string $expectedFile, string $actualJson, string $message='')
 
static assertJsonFileEqualsJsonFile (string $expectedFile, string $actualFile, string $message='')
 
static assertJsonFileNotEqualsJsonFile (string $expectedFile, string $actualFile, string $message='')
 
static logicalAnd ()
 
static logicalOr ()
 
static logicalNot (Constraint $constraint)
 
static logicalXor ()
 
static anything ()
 
static isTrue ()
 
static callback (callable $callback)
 
static isFalse ()
 
static isJson ()
 
static isNull ()
 
static isFinite ()
 
static isInfinite ()
 
static isNan ()
 
static attribute (Constraint $constraint, string $attributeName)
 
static contains ($value, bool $checkForObjectIdentity=true, bool $checkForNonObjectIdentity=false)
 
static containsEqual ($value)
 
static containsIdentical ($value)
 
static containsOnly (string $type)
 
static containsOnlyInstancesOf (string $className)
 
static arrayHasKey ($key)
 
static equalTo ($value, float $delta=0.0, int $maxDepth=10, bool $canonicalize=false, bool $ignoreCase=false)
 
static attributeEqualTo (string $attributeName, $value, float $delta=0.0, int $maxDepth=10, bool $canonicalize=false, bool $ignoreCase=false)
 
static isEmpty ()
 
static isWritable ()
 
static isReadable ()
 
static directoryExists ()
 
static fileExists ()
 
static greaterThan ($value)
 
static greaterThanOrEqual ($value)
 
static classHasAttribute (string $attributeName)
 
static classHasStaticAttribute (string $attributeName)
 
static objectHasAttribute ($attributeName)
 
static identicalTo ($value)
 
static isInstanceOf (string $className)
 
static isType (string $type)
 
static lessThan ($value)
 
static lessThanOrEqual ($value)
 
static matchesRegularExpression (string $pattern)
 
static matches (string $string)
 
static stringStartsWith ($prefix)
 
static stringContains (string $string, bool $case=true)
 
static stringEndsWith (string $suffix)
 
static countOf (int $count)
 
static fail (string $message='')
 
static readAttribute ($classOrObject, string $attributeName)
 
static getStaticAttribute (string $className, string $attributeName)
 
static getObjectAttribute ($object, string $attributeName)
 
static markTestIncomplete (string $message='')
 
static markTestSkipped (string $message='')
 
static getCount ()
 
static resetCount ()
 
- Protected Member Functions inherited from PHPUnit\Framework\TestCase
 setUp ()
 
 tearDown ()
 
 runTest ()
 
 iniSet (string $varName, string $newValue)
 
 setLocale (... $args)
 
 createStub (string $originalClassName)
 
 createMock ($originalClassName)
 
 createConfiguredMock ($originalClassName, array $configuration)
 
 createPartialMock ($originalClassName, array $methods)
 
 createTestProxy (string $originalClassName, array $constructorArguments=[])
 
 getMockClass ($originalClassName, $methods=[], array $arguments=[], $mockClassName='', $callOriginalConstructor=false, $callOriginalClone=true, $callAutoload=true, $cloneArguments=false)
 
 getMockForAbstractClass ($originalClassName, array $arguments=[], $mockClassName='', $callOriginalConstructor=true, $callOriginalClone=true, $callAutoload=true, $mockedMethods=[], $cloneArguments=false)
 
 getMockFromWsdl ($wsdlFile, $originalClassName='', $mockClassName='', array $methods=[], $callOriginalConstructor=true, array $options=[])
 
 getMockForTrait ($traitName, array $arguments=[], $mockClassName='', $callOriginalConstructor=true, $callOriginalClone=true, $callAutoload=true, $mockedMethods=[], $cloneArguments=false)
 
 getObjectForTrait ($traitName, array $arguments=[], $traitClassName='', $callOriginalConstructor=true, $callOriginalClone=true, $callAutoload=true)
 
 prophesize ($classOrInterface=null)
 
 createResult ()
 
 assertPreConditions ()
 
 assertPostConditions ()
 
 onNotSuccessfulTest (\Throwable $t)
 
- Protected Attributes inherited from PHPUnit\Framework\TestCase
 $backupGlobals
 
 $backupGlobalsBlacklist = []
 
 $backupStaticAttributes
 
 $backupStaticAttributesBlacklist = []
 
 $runTestInSeparateProcess
 
 $preserveGlobalState = true
 

Member Function Documentation

◆ testError()

PHPUnit\SelfTest\Basic\StatusTest::testError ( )

◆ testErrorWithMessage()

PHPUnit\SelfTest\Basic\StatusTest::testErrorWithMessage ( )

◆ testFailure()

PHPUnit\SelfTest\Basic\StatusTest::testFailure ( )

◆ testFailureWithMessage()

PHPUnit\SelfTest\Basic\StatusTest::testFailureWithMessage ( )

◆ testIncomplete()

PHPUnit\SelfTest\Basic\StatusTest::testIncomplete ( )

◆ testIncompleteWithMessage()

PHPUnit\SelfTest\Basic\StatusTest::testIncompleteWithMessage ( )

◆ testRisky()

PHPUnit\SelfTest\Basic\StatusTest::testRisky ( )

◆ testRiskyWithMessage()

PHPUnit\SelfTest\Basic\StatusTest::testRiskyWithMessage ( )

◆ testSkipped()

PHPUnit\SelfTest\Basic\StatusTest::testSkipped ( )

◆ testSkippedWithMessage()

PHPUnit\SelfTest\Basic\StatusTest::testSkippedWithMessage ( )

◆ testSuccess()

PHPUnit\SelfTest\Basic\StatusTest::testSuccess ( )

◆ testSuccessWithMessage()

PHPUnit\SelfTest\Basic\StatusTest::testSuccessWithMessage ( )

◆ testWarning()

PHPUnit\SelfTest\Basic\StatusTest::testWarning ( )

◆ testWarningWithMessage()

PHPUnit\SelfTest\Basic\StatusTest::testWarningWithMessage ( )

The documentation for this class was generated from the following file: