We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
1 | <?php |
||
20 | class ExecutorTest extends \PHPUnit_Framework_TestCase |
||
21 | { |
||
22 | /** @var RequestExecutor */ |
||
23 | private $executor; |
||
24 | |||
25 | private $request = ['query' => 'query debug{ myField }', 'variables' => [], 'operationName' => null]; |
||
26 | |||
27 | public function setUp() |
||
43 | |||
44 | /** |
||
45 | * @expectedException \RuntimeException |
||
46 | * @expectedExceptionMessage Execution result should be an object instantiating "GraphQL\Executor\ExecutionResult" or "GraphQL\Executor\Promise\Promise". |
||
47 | */ |
||
48 | public function testInvalidExecutorReturnNotObject() |
||
53 | |||
54 | /** |
||
55 | * @expectedException \RuntimeException |
||
56 | * @expectedExceptionMessage Execution result should be an object instantiating "GraphQL\Executor\ExecutionResult" or "GraphQL\Executor\Promise\Promise". |
||
57 | */ |
||
58 | public function testInvalidExecutorReturnInvalidObject() |
||
63 | |||
64 | public function testDisabledDebugInfo() |
||
68 | |||
69 | public function testEnabledDebugInfo() |
||
77 | |||
78 | /** |
||
79 | * @expectedException \RuntimeException |
||
80 | * @expectedExceptionMessage At least one schema should be declare. |
||
81 | */ |
||
82 | public function testGetSchemaNoSchemaFound() |
||
86 | |||
87 | private function createExecutorExecuteMock($returnValue) |
||
97 | } |
||
98 |