[String] add test case for unwrap method

This commit is contained in:
Mohamed Gamal 2020-01-06 20:41:59 +02:00 committed by Fabien Potencier
parent b1bee60119
commit 3e0c98836e

View File

@ -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
*/