8000 [String] We cannot have a "provides" function in test cases by derrabus · Pull Request #37770 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 8, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
[String] We cannot have a "provides" function in test cases.
  • Loading branch information
derrabus committed Aug 8, 2020
commit 46e2a0c51786c04b80d4b17c917e6f6989c88c97
4 changes: 2 additions & 2 deletions src/Symfony/Component/String/Tests/FunctionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@
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'],
Expand Down
0