mirror of
https://github.com/retailcrm/graphql-php.git
synced 2024-11-22 21:06:05 +03:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
b17b1c3336
20
tests/Language/TokenTest.php
Normal file
20
tests/Language/TokenTest.php
Normal 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());
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user