|
2 | 2 |
|
3 | 3 | declare(strict_types=1); |
4 | 4 |
|
5 | | -namespace Overblog\GraphQLBundle\Tests\Config\Parser; |
| 5 | +namespace Overblog\GraphQLBundle\Tests\Config\Parser\MetadataParser\TypeGuesser; |
6 | 6 |
|
7 | 7 | use Exception; |
8 | 8 | use Overblog\GraphQLBundle\Config\Parser\MetadataParser\ClassesTypesMap; |
9 | 9 | use Overblog\GraphQLBundle\Config\Parser\MetadataParser\TypeGuesser\DocBlockTypeGuesser; |
10 | 10 | use Overblog\GraphQLBundle\Config\Parser\MetadataParser\TypeGuesser\TypeGuessingException; |
| 11 | +use Overblog\GraphQLBundle\Tests\Config\Parser\TestCase; |
11 | 12 | use ReflectionClass; |
12 | 13 | use ReflectionMethod; |
13 | 14 | use ReflectionProperty; |
@@ -83,7 +84,7 @@ public function guessErrorDataProvider(): iterable |
83 | 84 | foreach ($this->reflectors as $reflectorClass => $tag) { |
84 | 85 | yield ['int|float', $reflectorClass, 'Tag @'.$tag.' found, but composite types are only allowed with null']; |
85 | 86 | yield ['array<int|float>', $reflectorClass, 'Tag @'.$tag.' found, but composite types in array or iterable are only allowed with null']; |
86 | | - yield ['UnknownClass', $reflectorClass, 'Tag @'.$tag.' found, but target object "Overblog\GraphQLBundle\Tests\Config\Parser\UnknownClass" is not a GraphQL Type class']; |
| 87 | + yield ['UnknownClass', $reflectorClass, 'Tag @'.$tag.' found, but target object "Overblog\GraphQLBundle\Tests\Config\Parser\MetadataParser\TypeGuesser\UnknownClass" is not a GraphQL Type class']; |
87 | 88 | yield ['object', $reflectorClass, 'Tag @'.$tag.' found, but type "object" is too generic']; |
88 | 89 | yield ['mixed[]', $reflectorClass, 'Tag @'.$tag.' found, but the array values cannot be mixed type']; |
89 | 90 | yield ['array<mixed>', $reflectorClass, 'Tag @'.$tag.' found, but the array values cannot be mixed type']; |
|
0 commit comments