Merge pull request #177 from GabrielDeveloper/develop

Improve test coverage
This commit is contained in:
Vladimir Razuvaev 2017-10-05 19:58:23 +07:00 committed by GitHub
commit 0c3a657800

View file

@ -0,0 +1,20 @@
<?php
namespace GraphQL\Tests;
use GraphQL\Language\Token;
class TokenTest extends \PHPUnit_Framework_TestCase
{
public function testReturnTokenOnArray()
{
$token = new Token('Kind', 1, 10, 3, 5);
$expected = [
'kind' => 'Kind',
'value' => null,
'line' => 3,
'column' => 5
];
$this->assertEquals($expected, $token->toArray());
}
}