File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 1111
1212namespace Symfony \Bridge \PhpUnit \Tests \FailTests ;
1313
14+ use PHPUnit \Framework \Attributes \Group ;
1415use PHPUnit \Framework \Attributes \RequiresPhpunit ;
16+ use PHPUnit \Framework \Attributes \RunInSeparateProcess ;
1517use PHPUnit \Framework \TestCase ;
1618use 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 ' );
Original file line number Diff line number Diff line change 1313
1414use PHPUnit \Framework \Attributes \Group ;
1515use PHPUnit \Framework \Attributes \RequiresPhpunit ;
16+ use PHPUnit \Framework \Exception ;
1617use 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 );
You can’t perform that action at this time.
0 commit comments