<?php

namespace Joli\Jane\Swagger\Tests\Expected\Resource;

use Joli\Jane\Swagger\Client\QueryParam;
use Joli\Jane\Swagger\Client\Resource;
class TestResource extends Resource
{
    /**
     * @param array $parameters
     * @param string $fetch
     *
     * @return \Psr\Http\Message\ResponseInterface
     */
    public function getTest($parameters = array(), $fetch = self::FETCH_OBJECT)
    {
        $queryParam = new QueryParam();
        $url = sprintf('/test?%s', $queryParam->buildQueryString($parameters));
        $request = $this->messageFactory->createRequest('GET', $url, $queryParam->buildHeaders($parameters), null);
        $response = $this->httpClient->sendRequest($request);
        return $response;
    }
}

<?php

namespace Joli\Jane\Swagger\Tests\Expected\Resource;

use Joli\Jane\Swagger\Client\QueryParam;
use Joli\Jane\Swagger\Client\Resource;
class TestResource extends Resource
{
    /**
     * @param array  $parameters List of parameters
     * @param string $fetch      Fetch mode (object or response)
     *
     * @return \Psr\Http\Message\ResponseInterface
     */
    public function getTest($parameters = array(), $fetch = self::FETCH_OBJECT)
    {
        $queryParam = new QueryParam();
        $url = sprintf('/test?%s', $queryParam->buildQueryString($parameters));
        $request = $this->messageFactory->createRequest('GET', $url, $queryParam->buildHeaders($parameters), null);
        $response = $this->httpClient->sendRequest($request);
        if (self::FETCH_RESPONSE == $fetch) {
            return $response;
        }
        return $response;
    }
}

Fix tests with updated generation
Fix tests with updated generation
