Skip to content

Commit 7a36a94

Browse files
CS
1 parent 2c8cbee commit 7a36a94

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

src/Symfony/Bridge/PhpUnit/Tests/FailTests/ExpectDeprecationTraitTestFail.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111

1212
namespace Symfony\Bridge\PhpUnit\Tests\FailTests;
1313

14+
use PHPUnit\Framework\Attributes\Group;
1415
use PHPUnit\Framework\Attributes\RequiresPhpunit;
16+
use PHPUnit\Framework\Attributes\RunInSeparateProcess;
1517
use PHPUnit\Framework\TestCase;
1618
use Symfony\Bridge\PhpUnit\ExpectDeprecationTrait;
1719

@@ -31,6 +33,7 @@ final class ExpectDeprecationTraitTestFail extends TestCase
3133
*
3234
* @group legacy
3335
*/
36+
#[Group('legacy')]
3437
public function testOne()
3538
{
3639
$this->expectDeprecation('foo');
@@ -44,6 +47,8 @@ public function testOne()
4447
*
4548
* @runInSeparateProcess
4649
*/
50+
#[Group('legacy')]
51+
#[RunInSeparateProcess]
4752
public function testOneInIsolation()
4853
{
4954
$this->expectDeprecation('foo');

src/Symfony/Bridge/PhpUnit/Tests/ProcessIsolationTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
use PHPUnit\Framework\Attributes\Group;
1515
use PHPUnit\Framework\Attributes\RequiresPhpunit;
16+
use PHPUnit\Framework\Exception;
1617
use PHPUnit\Framework\TestCase;
1718

1819
/**
@@ -37,7 +38,7 @@ public function testIsolation()
3738

3839
public function testCallingOtherErrorHandler()
3940
{
40-
$this->expectException(\PHPUnit\Framework\Exception::class);
41+
$this->expectException(Exception::class);
4142
$this->expectExceptionMessage('Test that PHPUnit\'s error handler fires.');
4243

4344
trigger_error('Test that PHPUnit\'s error handler fires.', \E_USER_WARNING);

src/Symfony/Component/VarDumper/Test/VarDumperTestTrait.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ protected function setUpVarDumper(array $casters, ?int $flags = null): void
3737
$this->varDumperConfig['flags'] = $flags;
3838
}
3939

40+
/**
41+
* @after
42+
*/
4043
#[After]
4144
protected function tearDownVarDumper(): void
4245
{

0 commit comments

Comments
 (0)