|
@@ 126-139 (lines=14) @@
|
| 123 |
|
$config = $processor->processConfiguration(new Configuration(true), []); |
| 124 |
|
|
| 125 |
|
$this->assertArrayHasKey('default_context', $config); |
| 126 |
|
foreach (['serialization', 'deserialization'] as $item) { |
| 127 |
|
$this->assertArrayHasKey($item, $config['default_context']); |
| 128 |
|
|
| 129 |
|
$defaultContext = $config['default_context'][$item]; |
| 130 |
|
|
| 131 |
|
$this->assertTrue(is_array($defaultContext['attributes'])); |
| 132 |
|
$this->assertEmpty($defaultContext['attributes']); |
| 133 |
|
|
| 134 |
|
$this->assertTrue(is_array($defaultContext['groups'])); |
| 135 |
|
$this->assertEmpty($defaultContext['groups']); |
| 136 |
|
|
| 137 |
|
$this->assertArrayNotHasKey('version', $defaultContext); |
| 138 |
|
$this->assertArrayNotHasKey('serialize_null', $defaultContext); |
| 139 |
|
} |
| 140 |
|
} |
| 141 |
|
|
| 142 |
|
public function testContextValues() |
|
@@ 241-254 (lines=14) @@
|
| 238 |
|
]); |
| 239 |
|
|
| 240 |
|
$this->assertArrayHasKey('default_context', $config); |
| 241 |
|
foreach (['serialization', 'deserialization'] as $configKey) { |
| 242 |
|
$this->assertArrayHasKey($configKey, $config['default_context']); |
| 243 |
|
|
| 244 |
|
$defaultContext = $config['default_context'][$configKey]; |
| 245 |
|
|
| 246 |
|
$this->assertTrue(is_array($defaultContext['attributes'])); |
| 247 |
|
$this->assertEmpty($defaultContext['attributes']); |
| 248 |
|
|
| 249 |
|
$this->assertTrue(is_array($defaultContext['groups'])); |
| 250 |
|
$this->assertEmpty($defaultContext['groups']); |
| 251 |
|
|
| 252 |
|
$this->assertArrayNotHasKey('version', $defaultContext); |
| 253 |
|
$this->assertArrayNotHasKey('serialize_null', $defaultContext); |
| 254 |
|
} |
| 255 |
|
} |
| 256 |
|
|
| 257 |
|
public function testDefaultDateFormat() |