Пример #1
0
 public function addParamAssociativeAray()
 {
     $u = new URL('http://example.com/ajax?load=getXML');
     $u->addParam('data', ['projectName' => 'project', 'langCode' => 'en']);
     $this->assertEquals('load=getXML&data[projectName]=project&data[langCode]=en', $u->getQuery());
 }