Skip to content

Commit f29af65

Browse files
mgamaldevfabpot
authored andcommitted
[String] add test case for unwrap method
1 parent c623a94 commit f29af65

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Tests/AbstractAsciiTestCase.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,17 @@ public static function provideBytesAt(): array
5555
];
5656
}
5757

58+
public function testUnwrap()
59+
{
60+
$expected = ['hello', 'world'];
61+
62+
$s = static::createFromString('');
63+
64+
$actual = $s::unwrap([static::createFromString('hello'), static::createFromString('world')]);
65+
66+
$this->assertEquals($expected, $actual);
67+
}
68+
5869
/**
5970
* @dataProvider provideWrap
6071
*/

0 commit comments

Comments
 (0)