コード例 #1
0
 /**
  * @group ZF-1480
  */
 public function testRemoveQueryParametersModifiesQueryAndReturnsOldQuery()
 {
     $url = new Url('http://example.com/foo/?a=1&b=2&c=3&d=4');
     $url->removeQueryParameters(array('b', 'd', 'e'));
     $this->assertEquals(array('a' => 1, 'c' => 3), $url->getQueryAsArray());
     $this->assertEquals('a=1&c=3', $url->getQuery());
 }