[String] add test case for unwrap method
This commit is contained in:
parent
b1bee60119
commit
3e0c98836e
@ -55,6 +55,17 @@ abstract class AbstractAsciiTestCase extends TestCase
|
||||
];
|
||||
}
|
||||
|
||||
public function testUnwrap()
|
||||
{
|
||||
$expected = ['hello', 'world'];
|
||||
|
||||
$s = static::createFromString('');
|
||||
|
||||
$actual = $s::unwrap([static::createFromString('hello'), static::createFromString('world')]);
|
||||
|
||||
$this->assertEquals($expected, $actual);
|
||||
}
|
||||
|
||||
/**
|
||||
* @dataProvider provideWrap
|
||||
*/
|
||||
|
Reference in New Issue
Block a user