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

Set the return type for the Request body element.
public setReturnAssoc ( boolean $returnAssoc ) : void
$returnAssoc boolean Whether to return an associative array or an stdClass.
Результат void
 public function testSetReturnAssoc()
 {
     $request = $this->getMock('SpotifyWebAPI\\Request');
     $request->expects($this->once())->method('setReturnAssoc')->with(true);
     $api = new SpotifyWebAPI\SpotifyWebAPI($request);
     $api->setReturnAssoc(true);
 }