for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Install GitHub App
<?php
namespace Overblog\GraphQLBundle\Tests\Functional\Relay\Connection;
use Overblog\GraphQLBundle\Tests\Functional\TestCase;
class InheritanceTest extends TestCase
{
/** @var array */
private $config;
protected function setUp()
parent::setUp();
static::bootKernel(['test_case' => 'inheritance']);
$this->config = static::$kernel->getContainer()->getParameter('overblog_graphql_types.config');
static::$kernel->getCont..._graphql_types.config')
*
array
$config
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..
}
public function testObjectInheritance()
$this->assertArrayHasKey('Query', $this->config);
$this->assertEquals(
[
'type' => 'object',
'extends' => ['QueryFoo', 'QueryBar', 'QueryHelloWord'],
'virtual' => false,
'config' => [
'fields' => [
'period' => [
'type' => 'Period',
'args' => [],
],
'bar' => [
'type' => 'String',
'sayHello' => [
'interfaces' => ['QueryHelloWord'],
'name' => 'Query',
$this->config['Query']
);
public function testEnumInheritance()
$this->assertArrayHasKey('Period', $this->config);
'type' => 'enum',
'extends' => ['Day', 'Month', 'Year'],
'name' => 'Period',
'values' => [
'YEAR' => ['value' => 3],
'MONTH' => ['value' => 2],
'DAY' => ['value' => 1],
$this->config['Period']
public function testVirtualTypeShouldRemovedFromFinalConfig()
$this->assertArrayNotHasKey('QueryBar', $this->config);
$this->assertArrayNotHasKey('QueryFoo', $this->config);
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..