mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-01-03 13:21:51 +00:00
Add text parameter to unit tests, forces text output.
Signed-off-by: Edward Z. Yang <edwardzyang@thewritingpot.com>
This commit is contained in:
parent
77f57aa264
commit
1d70929eba
1
NEWS
1
NEWS
@ -23,6 +23,7 @@ NEWS ( CHANGELOG and HISTORY ) HTMLPurifier
|
|||||||
Thanks Pierre Attar for reporting.
|
Thanks Pierre Attar for reporting.
|
||||||
- Fix YouTube rendering problem on certain versions of Firefox.
|
- Fix YouTube rendering problem on certain versions of Firefox.
|
||||||
- Fix CSSDefinition Printer problems with decorators
|
- Fix CSSDefinition Printer problems with decorators
|
||||||
|
- Add text parameter to unit tests, forces text output
|
||||||
. Add verbose mode to command line test runner, use (--verbose)
|
. Add verbose mode to command line test runner, use (--verbose)
|
||||||
. Turn on unit tests for UnitConverter
|
. Turn on unit tests for UnitConverter
|
||||||
. Fix missing version number in configuration %Attr.DefaultImageAlt (added 3.2.0)
|
. Fix missing version number in configuration %Attr.DefaultImageAlt (added 3.2.0)
|
||||||
|
@ -40,6 +40,7 @@ $AC['dry'] = false;
|
|||||||
$AC['php'] = $php;
|
$AC['php'] = $php;
|
||||||
$AC['help'] = false;
|
$AC['help'] = false;
|
||||||
$AC['verbose'] = false;
|
$AC['verbose'] = false;
|
||||||
|
$AC['txt'] = false;
|
||||||
|
|
||||||
$AC['type'] = '';
|
$AC['type'] = '';
|
||||||
$AC['disable-phpt'] = false;
|
$AC['disable-phpt'] = false;
|
||||||
@ -62,6 +63,7 @@ Allowed options:
|
|||||||
--standalone
|
--standalone
|
||||||
--file (-f) HTMLPurifier/NameOfTest.php
|
--file (-f) HTMLPurifier/NameOfTest.php
|
||||||
--xml
|
--xml
|
||||||
|
--txt
|
||||||
--dry
|
--dry
|
||||||
--php /path/to/php
|
--php /path/to/php
|
||||||
--type ( htmlpurifier | configdoc | fstools | htmlt | vtest | phpt )
|
--type ( htmlpurifier | configdoc | fstools | htmlt | vtest | phpt )
|
||||||
@ -100,7 +102,8 @@ require 'HTMLPurifier/Harness.php';
|
|||||||
if ($AC['xml']) {
|
if ($AC['xml']) {
|
||||||
if (!SimpleReporter::inCli()) header('Content-Type: text/xml;charset=UTF-8');
|
if (!SimpleReporter::inCli()) header('Content-Type: text/xml;charset=UTF-8');
|
||||||
$reporter = new XmlReporter();
|
$reporter = new XmlReporter();
|
||||||
} elseif (SimpleReporter::inCli()) {
|
} elseif (SimpleReporter::inCli() || $AC['txt']) {
|
||||||
|
if (!SimpleReporter::inCli()) header('Content-Type: text/plain;charset=UTF-8');
|
||||||
$reporter = new HTMLPurifier_SimpleTest_TextReporter($AC);
|
$reporter = new HTMLPurifier_SimpleTest_TextReporter($AC);
|
||||||
} else {
|
} else {
|
||||||
$reporter = new HTMLPurifier_SimpleTest_Reporter('UTF-8', $AC);
|
$reporter = new HTMLPurifier_SimpleTest_Reporter('UTF-8', $AC);
|
||||||
|
Loading…
Reference in New Issue
Block a user