diff options
author | Christian Schneider | 2014-09-01 18:09:10 +0200 |
---|---|---|
committer | Christian Schneider | 2014-09-01 18:09:10 +0200 |
commit | c2971eb952853be55a4d66b49d086e27970f2aea (patch) | |
tree | f354c35eccd9c8d5e8d1acb77b896ce647a871c7 | |
parent | 901603122feb5ecb73156eae297129a0f18f8d71 (diff) | |
download | itools-c2971eb952853be55a4d66b49d086e27970f2aea.tar.gz itools-c2971eb952853be55a4d66b49d086e27970f2aea.tar.bz2 itools-c2971eb952853be55a4d66b49d086e27970f2aea.zip |
Added some test for it_url::parse
-rwxr-xr-x | tests/it_url.t | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/it_url.t b/tests/it_url.t index b3222f7..711b5f1 100755 --- a/tests/it_url.t +++ b/tests/it_url.t @@ -236,4 +236,6 @@ ok(strpos($pages['a'], '</html>'), 'it_url::get_multi got first url'); # UTF8SAF ok(strpos($pages['b'], '</html>'), 'it_url::get_multi got second url'); # UTF8SAFE is(count($pages), 2, 'it_url::get_multi no additional array elements'); -?> +is(it_url::parse("/foo"), array("/foo"), "it_url::parse path only"); +is(it_url::parse("/foo?"), array("/foo"), "it_url::parse empty parameter"); +is(it_url::parse("/foo?bar=baz&qux=quux"), array("/foo", 'bar' => "baz", 'qux' => "quux"), "it_url::parse parameters"); |