Skip to content

Commit

Permalink
Use attributes in PHPUnit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alies-dev committed Feb 27, 2024
1 parent 849f2e6 commit d3250f1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/Commands/FindMissingTranslationsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@

use Diglabby\FindMissingTranslations\Tests\TestCase;
use Illuminate\Support\Facades\Artisan;
use PHPUnit\Framework\Attributes\Test;

final class FindMissingTranslationsTest extends TestCase
{
/** @test */
public function it_does_not_report_about_synchronized_files()
#[Test]
public function it_does_not_report_about_synchronized_files(): void
{
$this->withoutMockingConsoleOutput();

Expand All @@ -22,8 +23,8 @@ public function it_does_not_report_about_synchronized_files()
$this->assertSame('Successfully compared all languages.', trim($output));
}

/** @test */
public function it_reports_about_missing_translation_keys()
#[Test]
public function it_reports_about_missing_translation_keys(): void
{
$this->withoutMockingConsoleOutput();

Expand Down

0 comments on commit d3250f1

Please sign in to comment.