mirror of
https://github.com/retailcrm/graphql-php.git
synced 2024-11-25 06:16:05 +03:00
19 lines
456 B
PHP
19 lines
456 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace GraphQL\Tests\Exception;
|
|
|
|
use GraphQL\Exception\InvalidArgument;
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
final class InvalidArgumentTest extends TestCase
|
|
{
|
|
public function testFromExpectedTypeAndArgument() : void
|
|
{
|
|
$exception = InvalidArgument::fromExpectedTypeAndArgument('bool|int', 'stringValue');
|
|
|
|
self::assertSame('Expected type "bool|int", got "string"', $exception->getMessage());
|
|
}
|
|
}
|