PHPUnitManual:C.1

From 흡혈양파의 번역工房
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Appendix C.1 PHPUnit

PHPUnit

<phpunit> element 의 속성을 사용하여 PHPUnit 의 코어 기능을 설정합니다.

<phpunit backupGlobals="true"
         backupStaticAttributes="false"
         <!--bootstrap="/path/to/bootstrap.php"-->
         cacheTokens="false"
         colors="false"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="true"
         convertWarningsToExceptions="true"
         forceCoversAnnotation="false"
         mapTestClassNameToCoveredClassName="false"
         printerClass="PHPUnit_TextUI_ResultPrinter"
         <!--printerFile="/path/to/ResultPrinter.php"-->
         processIsolation="false"
         stopOnError="false"
         stopOnFailure="false"
         stopOnIncomplete="false"
         stopOnSkipped="false"
         testSuiteLoaderClass="PHPUnit_Runner_StandardTestSuiteLoader"
         <!--testSuiteLoaderFile="/path/to/StandardTestSuiteLoader.php"-->
         strict="false"
         verbose="false">
  <!-- ... -->
</phpunit>


이상의 XML 설정 파일은, TextUI test runner 를 기본 설정으로 기동합니다. 보다 제사한 내용은 “Command-Line switches” 에서 설명합니다.


그 외 command-line 에서 설정할 수 없는 옵션도 있습니다.


Notes