附录 D. 索引

符号

$backupGlobalsBlacklist,全局状态
$backupStaticAttributesBlacklist,全局状态
@assert,生成测试用例类的骨架
@author,命令行选项@author
@backupGlobals,全局状态@backupGlobals
@backupStaticAttributes,全局状态@backupStaticAttributes
@codeCoverageIgnore,忽略代码块@codeCoverageIgnore*
@codeCoverageIgnoreEnd,忽略代码块@codeCoverageIgnore*
@codeCoverageIgnoreStart,忽略代码块@codeCoverageIgnore*
@covers,指明要覆盖的方法@covers
@coversDefaultClass,@coversDefaultClass
@coversNothing,指明要覆盖的方法@coversNothing
@dataProvider,数据供给器@dataProvider
@depends,测试的依赖关系数据供给器@depends
@expectedException,对异常进行测试@expectedException
@expectedExceptionCode,对异常进行测试@expectedExceptionCode
@expectedExceptionMessage,对异常进行测试@expectedExceptionMessage
@group,命令行选项@group
@large,@large
@medium,@medium
@preserveGlobalState,@preserveGlobalState
@requires,@requires
@runInSeparateProcess,@runInSeparateProcess
@runTestsInSeparateProcesses,@runTestsInSeparateProcesses
@small,@small
@test,编写 PHPUnit 测试@test
@testdox,@testdox
@ticket,@ticket

A

Agile Documentation (敏捷文档),命令行选项敏捷文档
Annotation (标注),编写 PHPUnit 测试测试的依赖关系数据供给器对异常进行测试命令行选项指明要覆盖的方法忽略代码块生成测试用例类的骨架标注
anything(),assertThat()
arrayHasKey(),assertThat()
assertArrayHasKey(),assertArrayHasKey()断言
assertArrayNotHasKey(),assertArrayHasKey()断言
assertAttributeContains(),assertContains()断言
assertAttributeContainsOnly(),assertContainsOnly()断言
assertAttributeCount(),断言
assertAttributeEmpty(),assertEmpty()断言
assertAttributeEquals(),assertEquals()断言
assertAttributeGreaterThan(),assertGreaterThan()断言
assertAttributeGreaterThanOrEqual(),assertGreaterThanOrEqual()断言
assertAttributeInstanceOf(),assertInstanceOf()断言
assertAttributeInternalType(),assertInternalType()断言
assertAttributeLessThan(),assertLessThan()断言
assertAttributeLessThanOrEqual(),assertLessThanOrEqual()断言
assertAttributeNotContains(),assertContains()断言
assertAttributeNotContainsOnly(),assertContainsOnly()断言
assertAttributeNotCount(),断言
assertAttributeNotEmpty(),assertEmpty()断言
assertAttributeNotEquals(),assertEquals()断言
assertAttributeNotInstanceOf(),assertInstanceOf()断言
assertAttributeNotInternalType(),assertInternalType()断言
assertAttributeNotSame(),assertSame()断言
assertAttributeSame(),assertSame()断言
assertClassHasAttribute(),assertClassHasAttribute()断言
assertClassHasStaticAttribute(),assertClassHasStaticAttribute()断言
assertClassNotHasAttribute(),assertClassHasAttribute()断言
assertClassNotHasStaticAttribute(),assertClassHasStaticAttribute()断言
assertContains(),assertContains()断言
assertContainsOnly(),assertContainsOnly()断言
assertContainsOnlyInstancesOf(),assertContainsOnlyInstancesOf()断言
assertCount(),assertCount()断言
assertEmpty(),assertEmpty()断言
assertEquals(),assertEquals()断言
assertEqualXMLStructure(),assertEqualXMLStructure()断言
assertFalse(),assertFalse()断言
assertFileEquals(),assertFileEquals()断言
assertFileExists(),assertFileExists()断言
assertFileNotEquals(),assertFileEquals()断言
assertFileNotExists(),assertFileExists()断言
assertGreaterThan(),assertGreaterThan()断言
assertGreaterThanOrEqual(),assertGreaterThanOrEqual()断言
assertInstanceOf(),assertInstanceOf()断言
assertInternalType(),assertInternalType()断言
Assertions (断言),自动化测试
assertJsonFileEqualsJsonFile(),assertJsonFileEqualsJsonFile()断言
assertJsonFileNotEqualsJsonFile(),assertJsonFileEqualsJsonFile()断言
assertJsonStringEqualsJsonFile(),assertJsonStringEqualsJsonFile()断言
assertJsonStringEqualsJsonString(),assertJsonStringEqualsJsonString()断言
assertJsonStringNotEqualsJsonFile(),assertJsonStringEqualsJsonFile()断言
assertJsonStringNotEqualsJsonString(),assertJsonStringEqualsJsonString()断言
assertLessThan(),assertLessThan()断言
assertLessThanOrEqual(),assertLessThanOrEqual()断言
assertNotContains(),assertContains()断言
assertNotContainsOnly(),assertContainsOnly()断言
assertNotCount(),assertCount()断言
assertNotEmpty(),assertEmpty()断言
assertNotEquals(),assertEquals()断言
assertNotInstanceOf(),assertInstanceOf()断言
assertNotInternalType(),assertInternalType()断言
assertNotNull(),assertNull()断言
assertNotRegExp(),assertRegExp()断言
assertNotSame(),assertSame()断言
assertNotSameSize(),断言
assertNotTag(),assertTag()断言
assertNull(),assertNull()断言
assertObjectHasAttribute(),assertObjectHasAttribute()断言
assertObjectNotHasAttribute(),assertObjectHasAttribute()断言
assertPostConditions(),基境(fixture)
assertPreConditions(),基境(fixture)
assertRegExp(),assertRegExp()断言
assertSame(),assertSame()断言
assertSameSize(),断言
assertSelectCount(),assertSelectCount()断言
assertSelectEquals(),assertSelectEquals()断言
assertSelectRegExp(),assertSelectRegExp()断言
assertStringEndsNotWith(),assertStringEndsWith()断言
assertStringEndsWith(),assertStringEndsWith()断言
assertStringEqualsFile(),assertStringEqualsFile()断言
assertStringMatchesFormat(),assertStringMatchesFormat()断言
assertStringMatchesFormatFile(),assertStringMatchesFormatFile()断言
assertStringNotEqualsFile(),assertStringEqualsFile()断言
assertStringNotMatchesFormat(),assertStringMatchesFormat()断言
assertStringNotMatchesFormatFile(),assertStringMatchesFormatFile()断言
assertStringStartsNotWith(),assertStringStartsWith()断言
assertStringStartsWith(),assertStringStartsWith()断言
assertTag(),assertTag()断言
assertThat(),assertThat()断言
assertTrue(),assertTrue()断言
assertXmlFileEqualsXmlFile(),assertXmlFileEqualsXmlFile()断言
assertXmlFileNotEqualsXmlFile(),assertXmlFileEqualsXmlFile()断言
assertXmlStringEqualsXmlFile(),assertXmlStringEqualsXmlFile()断言
assertXmlStringEqualsXmlString(),assertXmlStringEqualsXmlString()断言
assertXmlStringNotEqualsXmlFile(),assertXmlStringEqualsXmlFile()断言
assertXmlStringNotEqualsXmlString(),assertXmlStringEqualsXmlString()断言
attribute(),assertThat()
attributeEqualTo(),assertThat()
Automated Documentation (自动文档),敏捷文档
Automated Test (自动测试),自动化测试

B

Behaviour-Driven Development (行为驱动开发),行为驱动开发
Blacklist (黑名单),包含与排除文件为代码覆盖率包含或排除文件

C

classHasAttribute(),assertThat()
classHasStaticAttribute(),assertThat()
Code Coverage (代码覆盖率),命令行选项代码覆盖率分析包含与排除文件@covers为代码覆盖率包含或排除文件
Configuration (配置),命令行选项
Constant (常量),设定 PHP INI 配置、常量、全局变量
contains(),assertThat()
containsOnly(),assertThat()
containsOnlyInstancesOf(),assertThat()

D

Data-Driven Tests (数据驱动测试),实现 PHPUnit_Framework_Test
Defect Localization (缺陷定位),测试的依赖关系
Depended-On Component (依赖组件),测试替身
Design-by-Contract (契约式设计),测试驱动开发
Documenting Assumptions (将假定文档化),敏捷文档
Domain-Driven Design (领域驱动设计),行为驱动开发

E

equalTo(),assertThat()
Error Handler (错误处理),对 PHP 错误进行测试
Error (错误),命令行测试执行器
expects(),短连件(Stub)
Extreme Programming (极限编程),测试驱动开发行为驱动开发敏捷文档

F

Failure (失败),命令行测试执行器
fileExists(),assertThat()
Fixture (基境),基境(fixture)
Fluent Interface (流畅式接口),短连件(Stub)

G

getMock(),短连件(Stub)
getMockBuilder(),短连件(Stub)
getMockForAbstractClass(),仿件对象(Mock Object)
getMockFromWsdl(),对 Web 服务(Web Services)进行短连或模仿
Global Variable (全局变量),全局状态设定 PHP INI 配置、常量、全局变量
greaterThan(),assertThat()
greaterThanOrEqual(),assertThat()

H

hasAttribute(),assertThat()

I

identicalTo(),assertThat()
include_path,命令行选项
Incomplete Test (不完整的测试),不完整的测试生成测试用例类的骨架
isFalse(),assertThat()
isInstanceOf(),assertThat()
isNull(),assertThat()
isTrue(),assertThat()
isType(),assertThat()

L

lessThan(),assertThat()
lessThanOrEqual(),assertThat()
Logfile (日志文件),命令行选项
Logging (日志记录),日志记录日志记录
logicalAnd(),assertThat()
logicalNot(),assertThat()
logicalOr(),assertThat()
logicalXor(),assertThat()

M

matchesRegularExpression(),assertThat()
method(),短连件(Stub)
Mock Object (仿件对象),仿件对象(Mock Object)

O

onConsecutiveCalls(),短连件(Stub)
onNotSuccessfulTest(),基境(fixture)

P

PHP Error (PHP 错误),对 PHP 错误进行测试
PHP Notice (PHP 通知),对 PHP 错误进行测试
PHP Warning (PHP 警告),对 PHP 错误进行测试
php.ini,设定 PHP INI 配置、常量、全局变量
PHPUnit_Extensions_RepeatedTest,从 PHPUnit_Extensions_TestDecorator 派生子类
PHPUnit_Extensions_Selenium2TestCase,PHPUnit_Extensions_Selenium2TestCase
PHPUnit_Extensions_SeleniumTestCase,PHPUnit_Extensions_SeleniumTestCase
PHPUnit_Extensions_Story_TestCase,行为驱动开发
PHPUnit_Extensions_TestDecorator,从 PHPUnit_Extensions_TestDecorator 派生子类
PHPUnit_Extensions_TestSetup,从 PHPUnit_Extensions_TestDecorator 派生子类
PHPUnit_Framework_Assert,银行账户(BankAccount)的例子
PHPUnit_Framework_Error,对 PHP 错误进行测试
PHPUnit_Framework_Error_Notice,对 PHP 错误进行测试
PHPUnit_Framework_Error_Warning,对 PHP 错误进行测试
PHPUnit_Framework_IncompleteTest,不完整的测试
PHPUnit_Framework_IncompleteTestError,不完整的测试
PHPUnit_Framework_Test,实现 PHPUnit_Framework_Test
PHPUnit_Framework_TestCase,编写 PHPUnit 测试从 PHPUnit_Framework_TestCase 派生子类
PHPUnit_Framework_TestListener,命令行选项实现 PHPUnit_Framework_TestListener测试监听器(Test Listeners)
PHPUnit_Runner_TestSuiteLoader,命令行选项
PHPUnit_Util_Printer,命令行选项
PHP_Invoker,@large@medium@small
Process Isolation (进程隔离),命令行选项

R

Refactoring (重构),在开发过程中
Report,命令行选项
returnArgument(),短连件(Stub)
returnCallback(),短连件(Stub)
returnSelf(),短连件(Stub)
returnValue(),短连件(Stub)
returnValueMap(),短连件(Stub)

S

Selenium RC,为 Selenium RC 配置浏览器
Selenium Server,Selenium Server
setUp(),基境(fixture)
setUpBeforeClass,共享基境
setUpBeforeClass(),基境(fixture)
Skeleton Generator (骨架生成器),生成测试用例类的骨架
Strict Mode (严格模式),命令行选项
stringContains(),assertThat()
stringEndsWith(),assertThat()
stringStartsWith(),assertThat()
Stub,短连件(Stub)
Stubs (短连件),跨团队测试
System Under Test (被测系统),测试替身

T

tearDown(),基境(fixture)
tearDownAfterClass,共享基境
tearDownAfterClass(),基境(fixture)
Template Method (模板方法),基境(fixture)
Test Dependencies (测试的依赖关系),测试的依赖关系
Test Double (测试替身),测试替身
Test Groups (测试分组),命令行选项分组
Test Isolation (测试隔离),命令行选项全局状态
Test Listener (测试监听器),测试监听器(Test Listeners)
Test Suite (测试套件),组织测试测试套件
Test-Driven Development (测试驱动开发),测试驱动开发行为驱动开发
Test-First Programming (测试优先编程),测试驱动开发
TestDox,敏捷文档@testdox
throwException(),短连件(Stub)
timeoutForLargeTests,@large
timeoutForMediumTests,@medium
timeoutForSmallTests,@small

U

Unit Test (单元测试),自动化测试测试驱动开发

X

Xdebug,代码覆盖率分析
XML Configuration (XML 配置),用 XML 配置来编排测试套件
请在 GitHub 上 开启任务单 来对本页提出改进建议。万分感谢!