@@ 93-106 (lines=14) @@ | ||
90 | $config = $processor->processConfiguration(new Configuration(true), []); |
|
91 | ||
92 | $this->assertArrayHasKey('default_context', $config); |
|
93 | foreach (['serialization', 'deserialization'] as $item) { |
|
94 | $this->assertArrayHasKey($item, $config['default_context']); |
|
95 | ||
96 | $defaultContext = $config['default_context'][$item]; |
|
97 | ||
98 | $this->assertTrue(is_array($defaultContext['attributes'])); |
|
99 | $this->assertEmpty($defaultContext['attributes']); |
|
100 | ||
101 | $this->assertTrue(is_array($defaultContext['groups'])); |
|
102 | $this->assertEmpty($defaultContext['groups']); |
|
103 | ||
104 | $this->assertArrayNotHasKey('version', $defaultContext); |
|
105 | $this->assertArrayNotHasKey('serialize_null', $defaultContext); |
|
106 | } |
|
107 | } |
|
108 | ||
109 | public function testContextValues() |
|
@@ 208-221 (lines=14) @@ | ||
205 | ]); |
|
206 | ||
207 | $this->assertArrayHasKey('default_context', $config); |
|
208 | foreach (['serialization', 'deserialization'] as $configKey) { |
|
209 | $this->assertArrayHasKey($configKey, $config['default_context']); |
|
210 | ||
211 | $defaultContext = $config['default_context'][$configKey]; |
|
212 | ||
213 | $this->assertTrue(is_array($defaultContext['attributes'])); |
|
214 | $this->assertEmpty($defaultContext['attributes']); |
|
215 | ||
216 | $this->assertTrue(is_array($defaultContext['groups'])); |
|
217 | $this->assertEmpty($defaultContext['groups']); |
|
218 | ||
219 | $this->assertArrayNotHasKey('version', $defaultContext); |
|
220 | $this->assertArrayNotHasKey('serialize_null', $defaultContext); |
|
221 | } |
|
222 | } |
|
223 | } |
|
224 |