Skip to content

Commit

Permalink
Update TraitGeneratorTest.php
Browse files Browse the repository at this point in the history
Signed-off-by: Nathanael Esayeas <nathanael.esayeas@protonmail.com>
  • Loading branch information
ghostwriter committed Feb 9, 2024
1 parent a2860b9 commit 6f353df
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/Unit/Generator/TraitGeneratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

use Generator;
use Ghostwriter\Testify\Generator\TraitGenerator;
use Ghostwriter\Testify\Interface\Generator\ClassLikeGeneratorInterface;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\TestCase;
Expand All @@ -18,6 +19,12 @@ protected function setUp(): void
self::markTestSkipped('Not implemented yet.');
}

#[DataProvider('dataProvidertestCompare')]
public function testCompare(ClassLikeGeneratorInterface $other): void
{
self::assertTrue(true);
}

#[DataProvider('dataProvidertestConstruct')]
public function testConstruct(
string $name,
Expand Down Expand Up @@ -45,6 +52,13 @@ public function testUses(): void
self::assertTrue(true);
}

public static function dataProvidertestCompare(): Generator
{
yield from [
'testCompare' => ['parameter-0'],
];
}

public static function dataProvidertestConstruct(): Generator
{
yield from [
Expand Down

0 comments on commit 6f353df

Please sign in to comment.