mirror of
https://github.com/guzzle/guzzle.git
synced 2025-02-24 18:13:00 +01:00
Adding a test for multi-dimensional arrays.
This commit is contained in:
parent
4c7220e06e
commit
8711d3f829
@ -111,6 +111,17 @@ class OauthPluginTest extends \Guzzle\Tests\GuzzleTestCase
|
||||
$this->assertContains('&a%3Dtrue%26c%3Dfalse', $p->getStringToSign($request, self::TIMESTAMP, self::NONCE));
|
||||
}
|
||||
|
||||
/**
|
||||
* @depends testCreatesStringToSignFromPostRequest
|
||||
*/
|
||||
public function testMultiDimensionalArray()
|
||||
{
|
||||
$p = new OauthPlugin($this->config);
|
||||
$request = $this->getRequest();
|
||||
$request->getQuery()->set('a', array('b' => array('c' => 'd')));
|
||||
$this->assertContains('&a%255Bb%255D%255Bc%255D%3Dd%26c%3Dd', $p->getStringToSign($request, self::TIMESTAMP, self::NONCE));
|
||||
}
|
||||
|
||||
/**
|
||||
* @depends testCreatesStringToSignFromPostRequest
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user