W3C
school
文档首页
HTML
CSS
Javascript
Python
jQuery
NodeJS
PHP
Java
MySQL
Express
More »
开关
PHPUnit 5 官方文档
Annotations
@after
@afterClass
@author
@backupGlobals
@backupStaticAttributes
@before
@beforeClass
@codeCoverageIgnore*
@covers
@coversDefaultClass
@coversNothing
@dataProvider
@depends
@expectedException
@expectedExceptionCode
@expectedExceptionMessage
@expectedExceptionMessageRegExp
@group
@large
@medium
@preserveGlobalState
@requires
@runInSeparateProcess
@runTestsInSeparateProcesses
@small
@test
@testdox
@ticket
@uses
Annotations
Assertions
assertArrayHasKey()
assertArraySubset()
assertClassHasAttribute()
assertClassHasStaticAttribute()
assertContains()
assertContainsOnly()
assertContainsOnlyInstancesOf()
assertCount()
assertDirectoryExists()
assertDirectoryIsReadable()
assertDirectoryIsWritable()
assertEmpty()
assertEquals()
assertEqualXMLStructure()
assertFalse()
assertFileEquals()
assertFileExists()
assertFileIsReadable()
assertFileIsWritable()
assertGreaterThan()
assertGreaterThanOrEqual()
assertInfinite()
assertInstanceOf()
assertInternalType()
Assertions
assertIsReadable()
assertIsWritable()
assertJsonFileEqualsJsonFile()
assertJsonStringEqualsJsonFile()
assertJsonStringEqualsJsonString()
assertLessThan()
assertLessThanOrEqual()
assertNan()
assertNull()
assertObjectHasAttribute()
assertRegExp()
assertSame()
assertStringEndsWith()
assertStringEqualsFile()
assertStringMatchesFormat()
assertStringMatchesFormatFile()
assertStringStartsWith()
assertThat()
assertTrue()
assertXmlFileEqualsXmlFile()
assertXmlStringEqualsXmlFile()
assertXmlStringEqualsXmlString()
Guides
Code Coverage Analysis
Database Testing
Extending PHPUnit
Fixtures
Incomplete and Skipped Tests
Installing PHPUnit
Logging
Organizing Tests
Other Uses for Tests
Risky Tests
Test Doubles
Testing Practices
The Command-Line Test Runner
The XML Configuration File
Writing Tests for PHPUnit
Index
index