buildPostData() публичный Метод

Build Post Data
public buildPostData ( $data ) : array | string
$data
Результат array | string
 public function testBuildPostDataArgSeparator()
 {
     $data = array('foo' => 'Hello', 'bar' => 'World');
     foreach (array(false, '&', '&') as $arg_separator) {
         if ($arg_separator) {
             ini_set('arg_separator.output', $arg_separator);
         }
         $curl = new Curl();
         $this->assertEquals('foo=Hello&bar=World', $curl->buildPostData($data));
     }
 }