Skip to content

Commit eb27bf1

Browse files
committed
Use attributes instead of doc-comments
1 parent 455d3bc commit eb27bf1

11 files changed

+31
-33
lines changed

tests/ListSchemasTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
*/
1010
namespace Tests\CLI\Commands;
1111

12-
/**
13-
* @runTestsInSeparateProcesses
14-
*/
12+
use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;
13+
14+
#[RunTestsInSeparateProcesses]
1515
final class ListSchemasTest extends DatabaseTestCase
1616
{
1717
public function testRun() : void

tests/MakeRoutesTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,9 @@
1111

1212
use Framework\Config\Config;
1313
use Framework\Testing\TestCase;
14+
use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;
1415

15-
/**
16-
* @runTestsInSeparateProcesses
17-
*/
16+
#[RunTestsInSeparateProcesses]
1817
final class MakeRoutesTest extends TestCase
1918
{
2019
protected function prepareDefaults() : void

tests/MigrateDownTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
*/
1010
namespace Tests\CLI\Commands;
1111

12-
/**
13-
* @runTestsInSeparateProcesses
14-
*/
12+
use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;
13+
14+
#[RunTestsInSeparateProcesses]
1515
final class MigrateDownTest extends MigrationTestCase
1616
{
1717
public function testRunDown() : void

tests/MigrateToTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
*/
1010
namespace Tests\CLI\Commands;
1111

12-
/**
13-
* @runTestsInSeparateProcesses
14-
*/
12+
use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;
13+
14+
#[RunTestsInSeparateProcesses]
1515
final class MigrateToTest extends MigrationTestCase
1616
{
1717
public function testRunUp() : void

tests/MigrateUpTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
*/
1010
namespace Tests\CLI\Commands;
1111

12-
/**
13-
* @runTestsInSeparateProcesses
14-
*/
12+
use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;
13+
14+
#[RunTestsInSeparateProcesses]
1515
final class MigrateUpTest extends MigrationTestCase
1616
{
1717
public function testRunUp() : void

tests/MigrationVersionTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
*/
1010
namespace Tests\CLI\Commands;
1111

12-
/**
13-
* @runTestsInSeparateProcesses
14-
*/
12+
use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;
13+
14+
#[RunTestsInSeparateProcesses]
1515
final class MigrationVersionTest extends MigrationTestCase
1616
{
1717
public function testNoVersion() : void

tests/QueryTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
*/
1010
namespace Tests\CLI\Commands;
1111

12-
/**
13-
* @runTestsInSeparateProcesses
14-
*/
12+
use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;
13+
14+
#[RunTestsInSeparateProcesses]
1515
final class QueryTest extends DatabaseTestCase
1616
{
1717
public function testRun() : void

tests/RoutesTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,9 @@
1111

1212
use Framework\Config\Config;
1313
use Framework\Testing\TestCase;
14+
use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;
1415

15-
/**
16-
* @runTestsInSeparateProcesses
17-
*/
16+
#[RunTestsInSeparateProcesses]
1817
final class RoutesTest extends TestCase
1918
{
2019
protected function prepareDefaults() : void

tests/SeedTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
*/
1010
namespace Tests\CLI\Commands;
1111

12-
/**
13-
* @runTestsInSeparateProcesses
14-
*/
12+
use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;
13+
14+
#[RunTestsInSeparateProcesses]
1515
final class SeedTest extends DatabaseTestCase
1616
{
1717
public function testRun() : void

tests/ShowSchemaTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
*/
1010
namespace Tests\CLI\Commands;
1111

12-
/**
13-
* @runTestsInSeparateProcesses
14-
*/
12+
use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;
13+
14+
#[RunTestsInSeparateProcesses]
1515
final class ShowSchemaTest extends DatabaseTestCase
1616
{
1717
public function testRun() : void

0 commit comments

Comments
 (0)