diff options
author | Christian Schneider | 2018-05-09 15:34:35 +0200 |
---|---|---|
committer | Christian Schneider | 2018-05-09 15:34:35 +0200 |
commit | 5689233970dc6476a33b2ce2981d2281758f70ad (patch) | |
tree | bcb9be82ff8f7f2de6c9c675d1ddcf9eb8b731af /tests | |
parent | 4eb159dac24263803291afa12d6ae0c45f6d712f (diff) | |
parent | d1195a5f10cdc4e8cb8a3a5e1c58f46fba9e5f3d (diff) | |
download | itools-5689233970dc6476a33b2ce2981d2281758f70ad.tar.gz itools-5689233970dc6476a33b2ce2981d2281758f70ad.tar.bz2 itools-5689233970dc6476a33b2ce2981d2281758f70ad.zip |
Merge branch 'cs/xmlnamespace'
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/it_html.t | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/it_html.t b/tests/it_html.t index 8e529e0..d18afdc 100755 --- a/tests/it_html.t +++ b/tests/it_html.t @@ -7,7 +7,7 @@ it::getopt(""); #handle possible --debug parameter # Traditional html5 generation ini_set('default_charset', "utf-8"); -new it_html(array('htmltype' => "html5", 'prettyprint' => false)); +new it_html(array('htmltype' => "html5", 'prettyprint' => false, 'error_on_redefine' => false)); is( a(array('href' => "&foo", 'true' => true, 'false' => false, 'null' => null, 'empty' => ""), "bar"), @@ -110,13 +110,13 @@ is( foreach (array('html5' => "<br flag>", 'html' => "<br flag>", 'xhtml' => "<br flag=\"flag\" />", 'xhtml-mobile' => "<br flag=\"flag\" />") as $type => $value) { unset($GLOBALS['it_html']); - new it_html(array('htmltype' => $type)); + new it_html(array('htmltype' => $type, 'error_on_redefine' => false)); is (trim(br(array('flag' => true))), $value, "Check empty tag and attribute for $type"); } # XHTML generation unset($GLOBALS['it_html']); -new it_html(array('htmltype' => "xhtml", 'tags' => "script")); +new it_html(array('htmltype' => "xhtml", 'tags' => "script", 'error_on_redefine' => false)); is( script(), @@ -139,7 +139,7 @@ is( # XML generation unset($GLOBALS['it_html']); -new it_html(array('htmltype' => "xml", 'tags' => "xmltest")); +new it_html(array('htmltype' => "xml", 'name' => 'it_html', 'tags' => "xmltest", 'error_on_redefine' => false)); is( xmltest(), @@ -194,7 +194,7 @@ function overriddentag($args) } unset($GLOBALS['it_html']); -new myhtml(array('htmltype' => "html")); +new myhtml(array('htmltype' => "html", 'error_on_redefine' => false)); is( myimg(['src' => "foo.gif", 'alt' => "foo"]), |