Skip to content

Commit d7aba90

Browse files
authored
Fix PHPUnit deprecations (#447)
1 parent ad9c5f5 commit d7aba90

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Tests/Functional/Command/ExtractCommandTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ public function testExecute(): void
9393
$output = $commandTester->getDisplay();
9494

9595
// Make sure we have 4 new messages
96-
$this->assertRegExp('|New messages +4|s', $output);
97-
$this->assertRegExp('|Total defined messages +8|s', $output);
96+
$this->assertMatchesRegularExpression('|New messages +4|s', $output);
97+
$this->assertMatchesRegularExpression('|Total defined messages +8|s', $output);
9898

9999
$container = $this->getContainer();
100100
$config = $container->get(ConfigurationManager::class)->getConfiguration('app');

Tests/Functional/Command/SyncCommandTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ public function testExecute(): void
8080

8181
$this->fail('The command should fail when called with an unknown configuration key.');
8282
} catch (\InvalidArgumentException $e) {
83-
$this->assertRegExp('|Unknown storage "fail"\.|s', $e->getMessage());
84-
$this->assertRegExp('|Available storages are "app"|s', $e->getMessage());
83+
$this->assertMatchesRegularExpression('|Unknown storage "fail"\.|s', $e->getMessage());
84+
$this->assertMatchesRegularExpression('|Available storages are "app"|s', $e->getMessage());
8585
}
8686
}
8787
}

0 commit comments

Comments
 (0)