minor #35234 [String] add test case for unwrap method (mgamal92)

This PR was squashed before being merged into the 5.1-dev branch (closes #35234).

Discussion
----------

[String] add test case for unwrap method

| Q             | A
| ------------- | ---
| Branch?       |  4.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| License       | MIT

just test case for ```unwrap()``` method has been added

Commits
-------

3e0c98836e [String] add test case for unwrap method
This commit is contained in:
Fabien Potencier 2020-01-07 20:08:56 +01:00
commit a1c3f55b48

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