for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*******************************************************************************
* This file is part of the GraphQL Bundle package.
*
* (c) YnloUltratech <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
******************************************************************************/
namespace Ynlo\GraphQLBundle\Test\Helper;
use Symfony\Bundle\FrameworkBundle\Client;
use Symfony\Component\HttpFoundation\Response;
/**
* @method Client getClient()
* @requires JsonHelperTrait
* @deprecated in favor of Behat tests
*/
trait ResponseHelperTrait
{
public static function getResponse(): Response
return static::getClient()->getResponse();
Ynlo\GraphQLBundle\Test\...elperTrait::getClient()
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
ignore-call
return static::/** @scrutinizer ignore-call */ getClient()->getResponse();
}
public static function getResponseJsonArray(): array
return json_decode(static::getResponse()->getContent(), true);
* @param string $path
* @return mixed|null
public static function getResponseJsonPathValue(string $path)
return static::getJsonPathValue(static::getResponseJsonArray(), $path);