[String] We cannot have a "provides" function in test cases.

This commit is contained in:
Alexander M. Turek 2020-08-08 15:51:54 +02:00
parent 1382001dfe
commit 46e2a0c517

View File

@ -20,14 +20,14 @@ use function Symfony\Component\String\s;
final class FunctionsTest extends TestCase
{
/**
* @dataProvider provideS
* @dataProvider provideStrings
*/
public function testS(AbstractString $expected, string $input)
{
$this->assertEquals($expected, s($input));
}
public function provideS()
public function provideStrings(): array
{
return [
[new UnicodeString('foo'), 'foo'],