From 2373f73d5d607be77af8e18622fdad9559979386 Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Sun, 9 Nov 2008 13:40:38 +0000 Subject: Convert tests back to old syntax for consistency of itools syntax --- tests/autoprepend.t | 16 ++++++++-------- tests/it_dbi.t | 4 ++-- tests/it_html.t | 16 ++++++++-------- 3 files changed, 18 insertions(+), 18 deletions(-) (limited to 'tests') diff --git a/tests/autoprepend.t b/tests/autoprepend.t index e91996f..8f4f52f 100755 --- a/tests/autoprepend.t +++ b/tests/autoprepend.t @@ -12,29 +12,29 @@ $GLOBALS['it_text']->statictext = array( is( T('foo'), "bar {v1}", - "simple T()", + "simple T()" ); is( T('foo', 'en'), "qux {v1}", - "simple T() with language", + "simple T() with language" ); is( - T('foo', 'v1' => "gna "gna "gna "gna "gna "gnaselect(), 3, - "select without parameters select all", + "select without parameters select all" ); is( @@ -169,7 +169,7 @@ foreach (new it_dbi_test as $id => $record) is($count, 3, "Iterator without select"); $count = 0; -foreach (new it_dbi_test('foo <>' => "") as $id => $record) +foreach (new it_dbi_test(array('foo <>' => "")) as $id => $record) { $count++; is($record->_key, $id, "Iterator id $id"); diff --git a/tests/it_html.t b/tests/it_html.t index 31eda14..86afbf8 100755 --- a/tests/it_html.t +++ b/tests/it_html.t @@ -39,15 +39,15 @@ is( ); is( - it::replace('\n+\s*' => "", select('name' => "gna", 'multiple' => true, '1:foo,2:bar', '1,2')), + it::replace(array('\n+\s*' => ""), select(array('name' => "gna", 'multiple' => true), '1:foo,2:bar', '1,2')), '', - "select tag with multiselect", + "select tag with multiselect" ); is( - it::replace('\n+\s*' => "", select('name' => "gna", array("1" => "foo", "2" => 'bar', '1,2' => "qux"), '1,2')), + it::replace(array('\n+\s*' => ""), select(array('name' => "gna"), array("1" => "foo", "2" => 'bar', '1,2' => "qux"), '1,2')), '', - "link tag without multiselect", + "link tag without multiselect" ); # XML generation @@ -101,18 +101,18 @@ is( 'it_html::sanitize tag soup' ); -it_html::configure('charset' => "utf-8"); +it_html::configure(array('charset' => "utf-8")); is( it_html::sanitize('qüx'), "q\xc3\xbcx", - 'it_html::sanitize with utf-8', + 'it_html::sanitize with utf-8' ); -it_html::configure('charset' => "iso-8859-1"); +it_html::configure(array('charset' => "iso-8859-1")); is( it_html::sanitize('qüx'), "q\xfcx", - 'it_html::sanitize with latin1', + 'it_html::sanitize with latin1' ); is( -- cgit v1.2.3