generated from ghostwriter/wip
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f5fed6b
commit c29feb9
Showing
1 changed file
with
67 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Ghostwriter\TestifyTests\Unit; | ||
|
||
use Generator; | ||
use Ghostwriter\Testify\TestBuilder; | ||
use PhpParser\BuilderFactory; | ||
use PhpParser\NodeTraverser; | ||
use PhpParser\PrettyPrinter\Standard; | ||
use PHPUnit\Framework\Attributes\CoversClass; | ||
use PHPUnit\Framework\Attributes\DataProvider; | ||
use PHPUnit\Framework\TestCase; | ||
use Psalm\Internal\Analyzer\ProjectAnalyzer; | ||
|
||
#[CoversClass(TestBuilder::class)] | ||
final class TestBuilderTest extends TestCase | ||
{ | ||
protected function setUp(): void | ||
{ | ||
self::markTestSkipped('Not implemented yet.'); | ||
} | ||
|
||
#[DataProvider('dataProviderBuild')] | ||
public function testBuild(string $file): void | ||
{ | ||
self::assertTrue(true); | ||
} | ||
|
||
#[DataProvider('dataProviderCheck')] | ||
public function testCheck(string $file): void | ||
{ | ||
self::assertTrue(true); | ||
} | ||
|
||
#[DataProvider('dataProviderConstruct')] | ||
public function testConstruct( | ||
ProjectAnalyzer $projectAnalyzer, | ||
BuilderFactory $builderFactory, | ||
Standard $printer, | ||
NodeTraverser $traverser | ||
): void { | ||
self::assertTrue(true); | ||
} | ||
|
||
public static function dataProviderBuild(): Generator | ||
{ | ||
yield from [ | ||
'example' => [true], | ||
]; | ||
} | ||
|
||
public static function dataProviderCheck(): Generator | ||
{ | ||
yield from [ | ||
'example' => [true], | ||
]; | ||
} | ||
|
||
public static function dataProviderConstruct(): Generator | ||
{ | ||
yield from [ | ||
'example' => [true], | ||
]; | ||
} | ||
} |