Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions tests/ContextTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,15 @@ public function testCompareWithSignature() {
[ 'account' => [ 'homePage' => COMMON_ACCT_HOMEPAGE, 'name' => COMMON_ACCT_NAME ]]
);
$contextActivities1 = new ContextActivities(
[ 'parent' => [ COMMON_ACTIVITY_ID ]]
[
'parent' => [ COMMON_ACTIVITY_ID ]
]
);
$contextActivities2 = new ContextActivities(
[ 'parent' => [ COMMON_ACTIVITY_ID . '/parent' ]],
[ 'grouping' => [ COMMON_ACTIVITY_ID ]]
[
'parent' => [ COMMON_ACTIVITY_ID . '/parent' ],
'grouping' => [ COMMON_ACTIVITY_ID ]
]
);
$ref1 = new StatementRef(
[ 'id' => Util::getUUID() ]
Expand Down Expand Up @@ -270,7 +274,7 @@ public function testCompareWithSignature() {
'description' => 'contextActivities only: mismatch',
'objArgs' => ['contextActivities' => $contextActivities1 ],
'sigArgs' => ['contextActivities' => $contextActivities2 ],
'reason' => 'Comparison of contextActivities failed: Comparison of parent failed: array lengths differ'
'reason' => 'Comparison of contextActivities failed: Comparison of grouping failed: array lengths differ'
],
[
'description' => 'revision only: mismatch',
Expand Down Expand Up @@ -324,7 +328,7 @@ public function testCompareWithSignature() {
'description' => 'full: contextActivities mismatch',
'objArgs' => $full,
'sigArgs' => array_replace($full, ['contextActivities' => $contextActivities2]),
'reason' => 'Comparison of contextActivities failed: Comparison of parent failed: array lengths differ'
'reason' => 'Comparison of contextActivities failed: Comparison of grouping failed: array lengths differ'
],
[
'description' => 'full: revision mismatch',
Expand Down