Skip to content

Commit

Permalink
fix(SqlTestEnable): add Attribute from PhpUnit
Browse files Browse the repository at this point in the history
  • Loading branch information
h4kuna authored and pionl committed Aug 6, 2024
1 parent 9816cf3 commit 096ffce
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,10 @@ parameters:
message: "#^Method Tests\\\\LaraStrict\\\\Feature\\\\Translations\\\\InvalidServiceProviderTranslations\\:\\:getProviderClass\\(\\) should return class\\-string\\<LaraStrict\\\\Providers\\\\AbstractServiceProvider\\> but returns string\\.$#"
count: 1
path: tests/Feature/Translations/InvalidServiceProviderTranslations.php

# forward compatibility
-
message: "#^Attribute class PHPUnit\\\\Framework\\\\Attributes\\\\BeforeClass does not exist\\.$#"
count: 1
path: tests/Unit/Database/Services/ChunkWriteServiceTest.php
# forward compatibility
2 changes: 2 additions & 0 deletions src/Tests/Traits/SqlTestEnable.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@
use Illuminate\Database\SQLiteConnection;
use PDO;
use PHPUnit\Framework\Assert;
use PHPUnit\Framework\Attributes\BeforeClass;

trait SqlTestEnable
{
/**
* @beforeClass
*/
#[BeforeClass]
final public static function beforeClassSqlTestEnable(): void
{
$resolver = new ConnectionResolver([
Expand Down

0 comments on commit 096ffce

Please sign in to comment.