Skip to content

Commit cdaae2f

Browse files
committed
added a test to #260
1 parent 9f1ed9a commit cdaae2f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/ReferencesTest.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,20 @@ public function testMergeReferences()
5252
->add('filename.php', 44)
5353
->add('filename2.php')
5454
->add('filename4.php')
55-
->add('filename3.php', 10);
55+
->add('filename3.php', 10)
56+
->add('5', 10)
57+
->add('6');
5658

5759
$merged = $references1->mergeWith($references2);
5860

59-
$this->assertCount(6, $merged);
61+
$this->assertCount(8, $merged);
6062
$this->assertSame([
6163
'filename.php' => [34, 56, 44],
6264
'filename3.php' => [10],
6365
'filename2.php' => [10],
6466
'filename4.php' => [],
67+
'5' => [10],
68+
'6' => [],
6569
], $merged->toArray());
6670

6771
$this->assertNotSame($merged, $references1);

0 commit comments

Comments
 (0)