mirror of
https://github.com/retailcrm/graphql-php.git
synced 2024-11-30 00:46:02 +03:00
25 lines
490 B
PHP
25 lines
490 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace GraphQL\Tests\Language;
|
|
|
|
use GraphQL\Language\Token;
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
class TokenTest extends TestCase
|
|
{
|
|
public function testReturnTokenOnArray() : void
|
|
{
|
|
$token = new Token('Kind', 1, 10, 3, 5);
|
|
$expected = [
|
|
'kind' => 'Kind',
|
|
'value' => null,
|
|
'line' => 3,
|
|
'column' => 5,
|
|
];
|
|
|
|
self::assertEquals($expected, $token->toArray());
|
|
}
|
|
}
|