Ejemplo n.º 1
0
 /**
  * @group ZF-1480
  */
 public function testAddReplaceQueryParametersModifiesQueryAndReturnsOldQuery()
 {
     $url = new Url('http://example.com/foo/?a=1&b=2&c=3');
     $url->addReplaceQueryParameters(array('b' => 4, 'd' => -1));
     $this->assertEquals(array('a' => 1, 'b' => 4, 'c' => 3, 'd' => -1), $url->getQueryAsArray());
     $this->assertEquals('a=1&b=4&c=3&d=-1', $url->getQuery());
 }