1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-06-25 20:45:16 +02:00

[ticket/16549] Fix database testcase transactions handling, fix indentations

PHPBB3-16549
This commit is contained in:
rxu
2020-11-14 23:18:52 +07:00
parent fe38280a1a
commit eb754e3a84
3 changed files with 13 additions and 9 deletions

View File

@ -88,8 +88,8 @@ class phpbb_test_case extends TestCase
* PHPUnit deprecates several methods and properties in its recent versions
* Provide BC layer to be able to test in multiple environment settings
*/
public function expectException(string $exception): void
{
public function expectException(string $exception): void
{
if (version_compare(self::$phpunit_version, '9.0', '>='))
{
switch ($exception) {
@ -124,8 +124,8 @@ class phpbb_test_case extends TestCase
* PHPUnit deprecates several methods and properties in its recent versions
* Provide BC layer to be able to test in multiple environment settings
*/
public static function assertFileNotExists(string $filename, string $message = ''): void
{
public static function assertFileNotExists(string $filename, string $message = ''): void
{
if (version_compare(self::$phpunit_version, '9.0', '>='))
{
parent::assertFileDoesNotExist($filename, $message);