Closed GoogleCodeExporter closed 9 years ago
[deleted comment]
Hi,
Have you verified that your change doesn't break any of the existing unit
tests?
And could you provide a unit test that fails with the current code, but passes
with your patch, with a ref. to why
the results should be as follows.. (The method you want to add your test to is
probably
OAuthRequestTest::testNormalizeParameters)
-Morten
Original comment by morten.f...@gmail.com
on 28 May 2010 at 7:09
Thanks for your reply.
The sort order must be "lexicographical byte value ordering".
Please see the below discussion.
http://groups.google.com/group/oauth/browse_thread/thread/7c698004be0d536/dced7b
6c82b917b2?lnk=gst&q=sort#
I added a test for this.
--- OAuthUtilTest.php (revision 1227)
+++ OAuthUtilTest.php (working copy)
@@ -99,6 +99,10 @@
'a=1&c=hi%20there&f=25&f=50&f=a&z=p&z=t',
OAuthUtil::build_http_query(array('a'=>'1', 'c' =>'hi there', 'f'=>array(25, 50, 'a'), 'z'=>array('p','t')))
);
+ $this->assertEquals(
+ 'x=200&x=25&y=B&y=a',
+ OAuthUtil::build_http_query(array('x'=>array(25, 200),
'y'=>array('a', 'B')))
+ );
}
Original comment by hidet...@gmail.com
on 9 Jun 2010 at 9:28
Patches added as of revision 1230. Thanks for reporting and creating patches.
Original comment by morten.f...@gmail.com
on 12 Jun 2010 at 8:09
Original issue reported on code.google.com by
hidet...@gmail.com
on 17 May 2010 at 8:50