Skip to content

Commit

Permalink
Create ProjectTest.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 Jan 23, 2024
1 parent 511c76e commit 46c4a05
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions tests/Unit/ProjectTest.php
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

View workflow job for this annotation

GitHub Actions / automation / Psalm on ubuntu with PHP 8.3 and Composer locked

UnusedParam

tests/Unit/ProjectTest.php:23:42: UnusedParam: Param #1 is never referenced in this method (see https://psalm.dev/135)

Check failure on line 23 in tests/Unit/ProjectTest.php

View workflow job for this annotation

GitHub Actions / automation / Psalm on ubuntu with PHP 8.3 and Composer locked

UnusedParam

tests/Unit/ProjectTest.php:23:58: UnusedParam: Param #2 is never referenced in this method (see https://psalm.dev/135)

Check failure on line 23 in tests/Unit/ProjectTest.php

View workflow job for this annotation

GitHub Actions / automation / Psalm on ubuntu with PHP 8.3 and Composer locked

UnusedParam

tests/Unit/ProjectTest.php:23:71: UnusedParam: Param #3 is never referenced in this method (see https://psalm.dev/135)
{
self::assertTrue(true);
}

#[DataProvider('dataProviderNew')]
public function testNew(InputInterface $input): void

Check failure on line 29 in tests/Unit/ProjectTest.php

View workflow job for this annotation

GitHub Actions / automation / Psalm on ubuntu with PHP 8.3 and Composer locked

UnusedParam

tests/Unit/ProjectTest.php:29:44: UnusedParam: Param #1 is never referenced in this method (see https://psalm.dev/135)
{
self::assertTrue(true);
}

public static function dataProviderConstruct(): Generator
{
yield from [
'example' => [true],
];
}

public static function dataProviderNew(): Generator
{
yield from [
'example' => [true],
];
}
}

0 comments on commit 46c4a05

Please sign in to comment.