From f0329a04eb73824aac93df66bba179bf44008501 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Mon, 6 Jun 2016 18:21:12 +0200 Subject: [PATCH] fix tests --- tests/bug61444.phpt | 2 +- tests/negotiate001.phpt | 35 ++++++++++++++++++++--------------- tests/url002.phpt | 4 ++-- 3 files changed, 23 insertions(+), 18 deletions(-) diff --git a/tests/bug61444.phpt b/tests/bug61444.phpt index 28d267c..5362c71 100644 --- a/tests/bug61444.phpt +++ b/tests/bug61444.phpt @@ -29,7 +29,7 @@ DONE --EXPECT-- http://www.example.com/foobar?bar.baz=blah&utm_source=google&utm_campaign=somethingelse&blat -http://www.example.com/foobar?bar.baz=blah&utm_source=changed&utm_campaign=somethingelse +http://www.example.com/foobar?bar.baz=blah&utm_source=changed&utm_campaign=somethingelse&blat http://www.google.com/foobar?bar.baz=blah&utm_source=google&utm_campaign=somethingelse&blat diff --git a/tests/negotiate001.phpt b/tests/negotiate001.phpt index f628cdf..b4757c0 100644 --- a/tests/negotiate001.phpt +++ b/tests/negotiate001.phpt @@ -11,43 +11,48 @@ HTTP_ACCEPT_LANGUAGE=de-DE,de-AT;q=0.9,en;q=0.8,fr;q=0 CONTENT TYPE CHARSET ENCODING LANGUAGE CUSTOM @@ -55,7 +60,7 @@ CUSTOM DONE --EXPECT-- @@ -103,7 +108,7 @@ LANGUAGE de: Array ( - [de] => 0.99 + [de] => 0.97 [en] => 0.8 ) de-DE: Array @@ -122,7 +127,7 @@ CUSTOM a.b: Array ( [a.b] => 0.9 - [c.e] => 0.1 - [a.x] => 0.1 + [c.e] => 0.08 + [a.x] => 0.08 ) DONE diff --git a/tests/url002.phpt b/tests/url002.phpt index 704ede2..de336a7 100644 --- a/tests/url002.phpt +++ b/tests/url002.phpt @@ -13,7 +13,7 @@ $u = "http://user:pass@www.example.com:8080/path/file.ext". var_dump($u === (string) new http\Url($u)); $url = new http\Url($u, - array("path" => "changed", "query" => "foo=&added=this"), + array("path" => "changed", "query" => "bar&foo=&added=this"), http\Url::JOIN_PATH | http\Url::JOIN_QUERY | http\Url::STRIP_AUTH | @@ -40,6 +40,6 @@ NULL string(15) "www.example.com" int(8080) string(13) "/path/changed" -string(38) "more%5B0%5D=1&more%5B1%5D=2&added=this" +string(47) "foo=&more%5B0%5D=1&more%5B1%5D=2&bar&added=this" NULL DONE -- 2.30.2