Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d35d24 commit 201150eCopy full SHA for 201150e
src/Symfony/Component/Form/Tests/Util/StringUtilTest.php
@@ -16,11 +16,20 @@
16
17
class StringUtilTest extends TestCase
18
{
19
- public function testTrim()
+ public function trimProvider()
20
21
- $data = ' Foo! ';
+ return [
22
+ [' Foo! ', 'Foo!'],
23
+ ["\u{1F92E}", "\u{1F92E}"]
24
+ ];
25
+ }
26
- $this->assertEquals('Foo!', StringUtil::trim($data));
27
+ /**
28
+ * @dataProvider trimProvider
29
+ */
30
+ public function testTrim($data, $expectedData)
31
+ {
32
+ $this->assertEquals($expectedData, StringUtil::trim($data));
33
}
34
35
/**
0 commit comments