Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/PHPUnit/Integration/HttpTest.php')
-rw-r--r--tests/PHPUnit/Integration/HttpTest.php7
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
*/