Skip to content

Commit 679e7c0

Browse files
committed
Creating from strict array test.
1 parent 26736e0 commit 679e7c0

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/WS/Utils/Collections/CollectionFactoryTest.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,17 @@ public function creatingFromArray(): void
7171
$this->assertThat($collection, CollectionIsEqual::to([1, 2, 3]));
7272
}
7373

74+
/**
75+
* @test
76+
*/
77+
public function creatingFromStrictArray(): void
78+
{
79+
$collection = CollectionFactory::fromStrict([4, 5, 6]);
80+
81+
$this->assertEquals(3, $collection->size());
82+
$this->assertThat($collection, CollectionIsEqual::to([4, 5, 6]));
83+
}
84+
7485
/**
7586
* @test
7687
*/

0 commit comments

Comments
 (0)