MDL-83468 phpunit: Fix various tests after phpunit 10
This commit is contained in:
@@ -29,6 +29,7 @@ use stdClass, ReflectionClass;
|
||||
use moodle_database, pgsql_native_moodle_database;
|
||||
use xmldb_table;
|
||||
use moodle_exception;
|
||||
use PHPUnit\Framework\Attributes\WithoutErrorHandler;
|
||||
|
||||
/**
|
||||
* Test specific features of the Postgres dml.
|
||||
@@ -396,6 +397,7 @@ final class pgsql_native_moodle_database_test extends \advanced_testcase {
|
||||
/**
|
||||
* Test SSL connection.
|
||||
*/
|
||||
#[WithoutErrorHandler]
|
||||
public function test_ssl_connection(): void {
|
||||
$pgconnerr = 'pg_connect(): Unable to connect to PostgreSQL server:';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user