Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
vladar committed Oct 13, 2017
2 parents 1487741 + 0c3a657 commit b17b1c3
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions tests/Language/TokenTest.php
Original file line number Diff line number Diff line change
@@ -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());
}
}

0 comments on commit b17b1c3

Please sign in to comment.