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
/*
* This file is part of the OverblogGraphQLBundle package.
*
* (c) Overblog <http://github.com/overblog/>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Overblog\GraphQLBundle\Tests\Definition;
use Overblog\GraphQLBundle\Definition\Argument;
class ArgumentTest extends \PHPUnit_Framework_TestCase
{
/**
* @var array
private $rawArgs;
* @var Argument
private $argument;
public function setUp()
$this->rawArgs = ['toto' => 'tata'];
$this->argument = new Argument($this->rawArgs);
}
public function testOffsetGet()
$this->assertEquals($this->argument['toto'], 'tata');
$this->assertNull($this->argument['fake']);
public function testOffsetSet()
$this->argument['foo'] = 'bar';
$this->assertEquals($this->argument['foo'], 'bar');
public function testOffsetExists()
unset($this->argument['toto']);
$this->assertNull($this->argument['toto']);
public function testOffsetUnset()
$this->assertTrue(isset($this->argument['toto']));
public function testCount()
$this->assertCount(1, $this->argument);
public function testGetRawArgs()
$this->assertEquals($this->rawArgs, $this->argument->getRawArguments());