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.
Signed-off-by: Nathanael Esayeas <nathanael.esayeas@protonmail.com>
- Loading branch information
1 parent
511c76e
commit 46c4a05
Showing
1 changed file
with
47 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,47 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Ghostwriter\TestifyTests\Unit; | ||
|
||
use Generator; | ||
use Ghostwriter\Testify\Project; | ||
use PHPUnit\Framework\Attributes\CoversClass; | ||
use PHPUnit\Framework\Attributes\DataProvider; | ||
use PHPUnit\Framework\TestCase; | ||
use Symfony\Component\Console\Input\InputInterface; | ||
|
||
#[CoversClass(Project::class)] | ||
final class ProjectTest extends TestCase | ||
{ | ||
protected function setUp(): void | ||
{ | ||
self::markTestSkipped('Not implemented yet.'); | ||
} | ||
|
||
#[DataProvider('dataProviderConstruct')] | ||
public function testConstruct(string $source, string $tests, bool $dryRun): void | ||
Check failure on line 23 in tests/Unit/ProjectTest.php GitHub Actions / automation / Psalm on ubuntu with PHP 8.3 and Composer lockedUnusedParam
Check failure on line 23 in tests/Unit/ProjectTest.php GitHub Actions / automation / Psalm on ubuntu with PHP 8.3 and Composer lockedUnusedParam
Check failure on line 23 in tests/Unit/ProjectTest.php GitHub Actions / automation / Psalm on ubuntu with PHP 8.3 and Composer lockedUnusedParam
|
||
{ | ||
self::assertTrue(true); | ||
} | ||
|
||
#[DataProvider('dataProviderNew')] | ||
public function testNew(InputInterface $input): void | ||
Check failure on line 29 in tests/Unit/ProjectTest.php GitHub Actions / automation / Psalm on ubuntu with PHP 8.3 and Composer lockedUnusedParam
|
||
{ | ||
self::assertTrue(true); | ||
} | ||
|
||
public static function dataProviderConstruct(): Generator | ||
{ | ||
yield from [ | ||
'example' => [true], | ||
]; | ||
} | ||
|
||
public static function dataProviderNew(): Generator | ||
{ | ||
yield from [ | ||
'example' => [true], | ||
]; | ||
} | ||
} |