-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
151 additions
and
5 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
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
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
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
25 changes: 25 additions & 0 deletions
25
tests/_files/Metadata/Attribute/tests/ProcessIsolationForkedTest.php
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,25 @@ | ||
<?php declare(strict_types=1); | ||
/* | ||
* This file is part of PHPUnit. | ||
* | ||
* (c) Sebastian Bergmann <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
namespace PHPUnit\TestFixture\Metadata\Attribute; | ||
|
||
use PHPUnit\Framework\Attributes\RunClassInSeparateProcess; | ||
use PHPUnit\Framework\Attributes\RunInSeparateProcess; | ||
use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses; | ||
use PHPUnit\Framework\TestCase; | ||
|
||
#[RunClassInSeparateProcess(true)] | ||
#[RunTestsInSeparateProcesses] | ||
final class ProcessIsolationForkedTest extends TestCase | ||
{ | ||
#[RunInSeparateProcess] | ||
public function testOne(): void | ||
{ | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
tests/_files/TestWithClassLevelIsolationAttributesForked.php
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,27 @@ | ||
<?php declare(strict_types=1); | ||
/* | ||
* This file is part of PHPUnit. | ||
* | ||
* (c) Sebastian Bergmann <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
namespace PHPUnit\TestFixture\TestBuilder; | ||
|
||
use PHPUnit\Framework\Attributes\BackupGlobals; | ||
use PHPUnit\Framework\Attributes\BackupStaticProperties; | ||
use PHPUnit\Framework\Attributes\RunClassInSeparateProcess; | ||
use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses; | ||
use PHPUnit\Framework\TestCase; | ||
|
||
#[BackupGlobals(true)] | ||
#[BackupStaticProperties(true)] | ||
#[RunClassInSeparateProcess] | ||
#[RunTestsInSeparateProcesses(true)] | ||
final class TestWithClassLevelIsolationAttributesForked extends TestCase | ||
{ | ||
public function testOne(): void | ||
{ | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
tests/_files/TestWithMethodLevelIsolationAttributesForked.php
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,25 @@ | ||
<?php declare(strict_types=1); | ||
/* | ||
* This file is part of PHPUnit. | ||
* | ||
* (c) Sebastian Bergmann <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
namespace PHPUnit\TestFixture\TestBuilder; | ||
|
||
use PHPUnit\Framework\Attributes\BackupGlobals; | ||
use PHPUnit\Framework\Attributes\BackupStaticProperties; | ||
use PHPUnit\Framework\Attributes\RunInSeparateProcess; | ||
use PHPUnit\Framework\TestCase; | ||
|
||
final class TestWithMethodLevelIsolationAttributes extends TestCase | ||
{ | ||
#[BackupGlobals(true)] | ||
#[BackupStaticProperties(true)] | ||
#[RunInSeparateProcess(true)] | ||
public function testOne(): void | ||
{ | ||
} | ||
} |