-
formatter
The results of the tests can be printed in different formats. Output will always be sent to a file, unless you set the
usefile
attribute tofalse
. The name of the file is predetermined by the formatter and can be changed by theoutfile
attribute.There are three predefined formatters - one prints the test results in XML format, the other emits plain text. The formatter named brief will only print detailed information for testcases that failed, while plain gives a little statistics line for all test cases. Custom formatters that implement phing.tasks.ext.PHPUnitResultFormatter can be specified.
If you use the XML formatter, it may not include the same output that your tests have written as some characters are illegal in XML documents and will be dropped.
Table 148. Attributes
Name Type Description Default Required type
String
Use a predefined formatter (either xml
,plain
, orsummary
).n/a One of these is required. classname
String
Name of a custom formatter class. n/a usefile
Boolean
Boolean that determines whether output should be sent to a file. true
No todir
String
Directory to write the file to. n/a No outfile
String
Filename of the result. Depends on formatter No
-
fileset