Skip to content

Commit d62a25e

Browse files
localheinzsebastianbergmann
authored andcommitted
Fix: Use PHPUnit\TestFixture as namespace for test fixtures
1 parent 5ffa719 commit d62a25e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

tests/end-to-end/cli/_files/MyCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
* For the full copyright and license information, please view the LICENSE
88
* file that was distributed with this source code.
99
*/
10+
namespace PHPUnit\TestFixture;
11+
1012
use PHPUnit\TextUI\Command;
1113

1214
class MyCommand extends Command

tests/end-to-end/cli/mycommand.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ $_SERVER['argv'][] = \realpath(__DIR__ . '/../../_files/BankAccountTest.php');
1010

1111
require_once __DIR__ . '/../../bootstrap.php';
1212

13-
MyCommand::main();
13+
PHPUnit\TestFixture\MyCommand::main();
1414
--EXPECTF--
15-
MyCommand::myHandler 123
15+
PHPUnit\TestFixture\MyCommand::myHandler 123
1616
PHPUnit %s #StandWithUkraine
1717

1818
... 3 / 3 (100%)

0 commit comments

Comments
 (0)