diff options
author | Matthieu Aubry <mattab@users.noreply.github.com> | 2016-12-12 13:54:03 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-12 13:54:03 +0300 |
commit | 53454e8efd0ab2a03dd9bb9f837aa63f36cfe552 (patch) | |
tree | be7dc483dad0dcac6577b73e9e82ede7bc097682 /tests/PHPUnit/Integration/HttpTest.php | |
parent | b1c09fa5123155ab9cd79342a4a0cef42e80de7f (diff) | |
parent | 67f2661f24602a07ebee66172f8446887ab83787 (diff) |
Merge pull request #10994 from piwik/3.x-dev3.0.0-rc2
3.0.0-rc2 release
Diffstat (limited to 'tests/PHPUnit/Integration/HttpTest.php')
-rw-r--r-- | tests/PHPUnit/Integration/HttpTest.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/PHPUnit/Integration/HttpTest.php b/tests/PHPUnit/Integration/HttpTest.php index 823b6037be..afa068bdf4 100644 --- a/tests/PHPUnit/Integration/HttpTest.php +++ b/tests/PHPUnit/Integration/HttpTest.php @@ -55,6 +55,13 @@ class HttpTest extends \PHPUnit_Framework_TestCase $this->assertGreaterThan(0, filesize($destinationPath)); } + public function testBuildQuery() + { + $this->assertEquals('', Http::buildQuery(array())); + $this->assertEquals('test=foo', Http::buildQuery(array('test' => 'foo'))); + $this->assertEquals('test=foo&bar=baz', Http::buildQuery(array('test' => 'foo', 'bar' => 'baz'))); + } + /** * @dataProvider getMethodsToTest */ |