Skip to content

Commit

Permalink
Fix: Use PHPUnit\TestFixture as namespace for test fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz authored and sebastianbergmann committed Mar 9, 2022
1 parent 5ffa719 commit d62a25e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions tests/end-to-end/cli/_files/MyCommand.php
Expand Up @@ -7,6 +7,8 @@
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPUnit\TestFixture;

use PHPUnit\TextUI\Command;

class MyCommand extends Command
Expand Down
4 changes: 2 additions & 2 deletions tests/end-to-end/cli/mycommand.phpt
Expand Up @@ -10,9 +10,9 @@ $_SERVER['argv'][] = \realpath(__DIR__ . '/../../_files/BankAccountTest.php');

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

MyCommand::main();
PHPUnit\TestFixture\MyCommand::main();
--EXPECTF--
MyCommand::myHandler 123
PHPUnit\TestFixture\MyCommand::myHandler 123
PHPUnit %s #StandWithUkraine

... 3 / 3 (100%)
Expand Down

0 comments on commit d62a25e

Please sign in to comment.