Applied rectors phpunit 9 migrations to tests

This commit is contained in:
Jan Böhmer 2023-06-11 15:15:55 +02:00
parent 684334ba22
commit fcbb1849ec
22 changed files with 162 additions and 187 deletions

View file

@ -34,17 +34,15 @@ class BBCodeToMarkdownConverterTest extends TestCase
$this->converter = new BBCodeToMarkdownConverter();
}
public function dataProvider(): array
public function dataProvider(): \Iterator
{
return [
['[b]Bold[/b]', '**Bold**'],
['[i]Italic[/i]', '*Italic*'],
['[s]Strike[/s]', '<s>Strike</s>'],
['[url]https://foo.bar[/url]', '<https://foo.bar>'],
['[url=https://foo.bar]test[/url]', '[test](https://foo.bar)'],
['[center]Centered[/center]', '<div style="text-align:center">Centered</div>'],
['test no change', 'test no change'],
];
yield ['[b]Bold[/b]', '**Bold**'];
yield ['[i]Italic[/i]', '*Italic*'];
yield ['[s]Strike[/s]', '<s>Strike</s>'];
yield ['[url]https://foo.bar[/url]', '<https://foo.bar>'];
yield ['[url=https://foo.bar]test[/url]', '[test](https://foo.bar)'];
yield ['[center]Centered[/center]', '<div style="text-align:center">Centered</div>'];
yield ['test no change', 'test no change'];
}
/**