附录 E. 索引

符号

$backupGlobalsBlacklist,全局状态
$backupStaticAttributesBlacklist,全局状态
@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()
assertAttributeEmpty(),assertEmpty()
assertAttributeEquals(),assertEquals()
assertAttributeGreaterThan(),assertGreaterThan()
assertAttributeGreaterThanOrEqual(),assertGreaterThanOrEqual()
assertAttributeInstanceOf(),assertInstanceOf()
assertAttributeInternalType(),assertInternalType()
assertAttributeLessThan(),assertLessThan()
assertAttributeLessThanOrEqual(),assertLessThanOrEqual()
assertAttributeNotContains(),assertContains()
assertAttributeNotContainsOnly(),assertContainsOnly()
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()
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()
assertNotTag(),assertTag()
assertNull(),assertNull()
assertObjectHasAttribute(),assertObjectHasAttribute()
assertObjectNotHasAttribute(),assertObjectHasAttribute()
assertPostConditions(),基境(fixture)
assertPreConditions(),基境(fixture)
assertRegExp(),assertRegExp()
assertSame(),assertSame()
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 (自动文档),敏捷文档

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 (依赖组件),测试替身
Documenting Assumptions (将假定文档化),敏捷文档

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(),对性状(Trait)与抽象类进行模仿
getMockForTrait(),对性状(Trait)与抽象类进行模仿
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_TestDecorator,从 PHPUnit_Extensions_TestDecorator 派生子类
PHPUnit_Extensions_TestSetup,从 PHPUnit_Extensions_TestDecorator 派生子类
PHPUnit_Framework_BaseTestListener,实现 PHPUnit_Framework_TestListener
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)
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 (测试套件),组织测试测试套件
TestDox,敏捷文档@testdox
throwException(),短连件(Stub)
timeoutForLargeTests,@large
timeoutForMediumTests,@medium
timeoutForSmallTests,@small

X

Xdebug,代码覆盖率分析
XML Configuration (XML 配置),用 XML 配置来编排测试套件