Skip to content

Commit

Permalink
tests: adjusts dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
nunomaduro committed Jan 8, 2024
1 parent b06d5ab commit 751a38e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/Printer/DatasetsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,19 @@
namespace Tests\Printer;

use PHPUnit\Framework\TestCase;
use PHPUnit\Framework\Attributes\DataProvider;

class DatasetsTest extends TestCase
{
public function provideData(): array
public static function provideData(): array
{
return [
'a' => ['Foo'],
'b' => ['Bar'],
];
}

/**
* @dataProvider provideData
*/
#[DataProvider('provideData')]
public function testWithOutput(string $data)
{
echo $data;
Expand Down

0 comments on commit 751a38e

Please sign in to comment.