|
@@ 222-228 (lines=7) @@
|
| 219 |
|
*/ |
| 220 |
|
protected function assertPropertiesCorrectUnsorted(array $expectedValues, ValueObject $actualObject) |
| 221 |
|
{ |
| 222 |
|
foreach ($expectedValues as $propertyName => $propertyValue) { |
| 223 |
|
if ($propertyValue instanceof ValueObject) { |
| 224 |
|
$this->assertStructPropertiesCorrect($propertyValue, $actualObject->$propertyName); |
| 225 |
|
} else { |
| 226 |
|
$this->assertPropertiesEqual($propertyName, $propertyValue, $actualObject->$propertyName, true); |
| 227 |
|
} |
| 228 |
|
} |
| 229 |
|
} |
| 230 |
|
|
| 231 |
|
/** |
|
@@ 242-248 (lines=7) @@
|
| 239 |
|
*/ |
| 240 |
|
protected function assertStructPropertiesCorrect(ValueObject $expectedValues, ValueObject $actualObject, array $additionalProperties = array()) |
| 241 |
|
{ |
| 242 |
|
foreach ($expectedValues as $propertyName => $propertyValue) { |
| 243 |
|
if ($propertyValue instanceof ValueObject) { |
| 244 |
|
$this->assertStructPropertiesCorrect($propertyValue, $actualObject->$propertyName); |
| 245 |
|
} else { |
| 246 |
|
$this->assertPropertiesEqual($propertyName, $propertyValue, $actualObject->$propertyName); |
| 247 |
|
} |
| 248 |
|
|
| 249 |
|
} |
| 250 |
|
|
| 251 |
|
foreach ($additionalProperties as $propertyName) { |