Skip to content

Commit

Permalink
Upgrade to PHPUnit 10 (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
lexf authored Feb 17, 2024
1 parent 8be6b22 commit e7a7a68
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Tests/Cron/CommandBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function testRenderEnvironment()
$env = rand();
$builder = new CommandBuilder((string) $env);

$this->assertRegExp(sprintf('/--env=%s$/', $env), $builder->build(''));
$this->assertMatchesRegularExpression(sprintf('/--env=%s$/', $env), $builder->build(''));
}

public function testEnv()
Expand All @@ -31,6 +31,6 @@ public function testEnv()
$kernel->boot();
$builder = $kernel->getContainer()->get('cron.command_builder');

$this->assertRegExp(sprintf('/ --env=%s$/', 'test'), $builder->build(''));
$this->assertMatchesRegularExpression(sprintf('/ --env=%s$/', 'test'), $builder->build(''));
}
}
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
},
"require-dev": {
"doctrine/doctrine-bundle": "*",
"phpunit/phpunit": "^8.0",
"phpunit/phpunit": "^10",
"symfony/framework-bundle": "^5.0|^6.0|^7.0",
"symfony/security-csrf": "^5.0|^6.0|^7.0",
"symfony/translation": "^5.0|^6.0|^7.0",
Expand Down

0 comments on commit e7a7a68

Please sign in to comment.