From c2971eb952853be55a4d66b49d086e27970f2aea Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Mon, 1 Sep 2014 18:09:10 +0200 Subject: Added some test for it_url::parse --- tests/it_url.t | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests') 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'], ''), 'it_url::get_multi got first url'); # UTF8SAF ok(strpos($pages['b'], ''), '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"); -- cgit v1.2.3