Creating test to Language\Token

This commit is contained in:
Gabriel Goncalves 2017-10-04 12:06:25 -03:00
parent fb0ca607e2
commit 440d38d3bc

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());
}
}