1 | <?php declare(strict_types = 1); |
||
17 | class SerializationTypeResolverTest extends \PHPUnit_Framework_TestCase |
||
18 | { |
||
19 | /** |
||
20 | * @var SerializationTypeResolver |
||
21 | */ |
||
22 | private $resolver; |
||
23 | |||
24 | protected function setUp() |
||
31 | |||
32 | /** |
||
33 | * @test |
||
34 | * @expectedException \InvalidArgumentException |
||
35 | */ |
||
36 | public function unresolvableTypeResultsInException() |
||
40 | |||
41 | |||
42 | /** |
||
43 | * @test |
||
44 | * @expectedException \InvalidArgumentException |
||
45 | */ |
||
46 | public function willThrowExceptionWhenBaseTypeNameCannotBeDeterminedFromSchema() |
||
50 | |||
51 | /** |
||
52 | * @test |
||
53 | */ |
||
54 | public function canResolveTypesInOrderUsingMultipleNamespaces() |
||
58 | |||
59 | /** |
||
60 | * @test |
||
61 | */ |
||
62 | public function canResolveSameTypeTwice() |
||
67 | |||
68 | /** |
||
69 | * @test |
||
70 | */ |
||
71 | public function canReverseLookupPreviouslyResolvedType() |
||
76 | |||
77 | /** |
||
78 | * @test |
||
79 | * @expectedException \InvalidArgumentException |
||
80 | */ |
||
81 | public function reverseLookupWillFailIfNotPreviouslyResolved() |
||
85 | |||
86 | /** |
||
87 | * @test |
||
88 | * @expectedException \InvalidArgumentException |
||
89 | */ |
||
90 | public function resolveOperationBodyTypeWillFailWhenOperationHasNoParameters() |
||
97 | } |
||
98 |