|
@@ 230-236 (lines=7) @@
|
| 227 |
|
*/ |
| 228 |
|
protected function assertPropertiesCorrectUnsorted(array $expectedValues, ValueObject $actualObject) |
| 229 |
|
{ |
| 230 |
|
foreach ($expectedValues as $propertyName => $propertyValue) { |
| 231 |
|
if ($propertyValue instanceof ValueObject) { |
| 232 |
|
$this->assertStructPropertiesCorrect($propertyValue, $actualObject->$propertyName); |
| 233 |
|
} else { |
| 234 |
|
$this->assertPropertiesEqual($propertyName, $propertyValue, $actualObject->$propertyName, true); |
| 235 |
|
} |
| 236 |
|
} |
| 237 |
|
} |
| 238 |
|
|
| 239 |
|
/** |
|
@@ 250-256 (lines=7) @@
|
| 247 |
|
*/ |
| 248 |
|
protected function assertStructPropertiesCorrect(ValueObject $expectedValues, ValueObject $actualObject, array $additionalProperties = array()) |
| 249 |
|
{ |
| 250 |
|
foreach ($expectedValues as $propertyName => $propertyValue) { |
| 251 |
|
if ($propertyValue instanceof ValueObject) { |
| 252 |
|
$this->assertStructPropertiesCorrect($propertyValue, $actualObject->$propertyName); |
| 253 |
|
} else { |
| 254 |
|
$this->assertPropertiesEqual($propertyName, $propertyValue, $actualObject->$propertyName); |
| 255 |
|
} |
| 256 |
|
} |
| 257 |
|
|
| 258 |
|
foreach ($additionalProperties as $propertyName) { |
| 259 |
|
$this->assertPropertiesEqual($propertyName, $expectedValues->$propertyName, $actualObject->$propertyName); |