mirror of
https://github.com/nextcloud/spreed.git
synced 2025-12-17 21:12:20 +01:00
Merge pull request #16564 from nextcloud/fix-phpunit-11-use-in-behat
test: Fix PHPUnit 11 use in Behat
This commit is contained in:
commit
82577dc459
1 changed files with 6 additions and 0 deletions
|
|
@ -15,6 +15,7 @@ use Behat\Behat\Hook\Scope\BeforeScenarioScope;
|
|||
use Behat\Gherkin\Node\TableNode;
|
||||
use Behat\Hook\AfterScenario;
|
||||
use Behat\Hook\BeforeScenario;
|
||||
use Behat\Hook\BeforeSuite;
|
||||
use Behat\Step\Given;
|
||||
use Behat\Step\Then;
|
||||
use Behat\Step\When;
|
||||
|
|
@ -208,6 +209,11 @@ class FeatureContext implements Context, SnippetAcceptingContext {
|
|||
}
|
||||
}
|
||||
|
||||
#[BeforeSuite]
|
||||
public static function createPHPUnitConfiguration(): void {
|
||||
(new \PHPUnit\TextUI\Configuration\Builder())->build([]);
|
||||
}
|
||||
|
||||
#[BeforeScenario]
|
||||
public function setUp(BeforeScenarioScope $scope): void {
|
||||
self::$currentScenario = $scope->getFeature()->getTitle() . ':' . $scope->getScenario()->getLine() . ' - ' . $scope->getScenario()->getTitle();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue