Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 27... Línea 27...
27
 
27
 
28
use stdClass, ReflectionClass;
28
use stdClass, ReflectionClass;
29
use moodle_database, pgsql_native_moodle_database;
29
use moodle_database, pgsql_native_moodle_database;
30
use xmldb_table;
30
use xmldb_table;
-
 
31
use moodle_exception;
Línea 31... Línea 32...
31
use moodle_exception;
32
use PHPUnit\Framework\Attributes\WithoutErrorHandler;
32
 
33
 
33
/**
34
/**
34
 * Test specific features of the Postgres dml.
35
 * Test specific features of the Postgres dml.
35
 *
36
 *
36
 * @package core
37
 * @package core
37
 * @category test
38
 * @category test
38
 * @copyright 2020 Ruslan Kabalin
39
 * @copyright 2020 Ruslan Kabalin
39
 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
40
 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
40
 * @covers  \pgsql_native_moodle_database
41
 * @covers  \pgsql_native_moodle_database
Línea 41... Línea 42...
41
 */
42
 */
42
class pgsql_native_moodle_database_test extends \advanced_testcase {
43
final class pgsql_native_moodle_database_test extends \advanced_testcase {
43
 
44
 
44
    /**
45
    /**
45
     * Setup before class.
46
     * Setup before class.
46
     */
47
     */
-
 
48
    public static function setUpBeforeClass(): void {
47
    public static function setUpBeforeClass(): void {
49
        global $CFG;
Línea 48... Línea 50...
48
        global $CFG;
50
        require_once($CFG->libdir.'/dml/pgsql_native_moodle_database.php');
49
        require_once($CFG->libdir.'/dml/pgsql_native_moodle_database.php');
51
        parent::setUpBeforeClass();
50
    }
52
    }
Línea 392... Línea 394...
392
        return $rp->getValue($db2);
394
        return $rp->getValue($db2);
393
    }
395
    }
Línea 394... Línea 396...
394
 
396
 
395
    /**
397
    /**
396
     * Test SSL connection.
-
 
397
     *
-
 
398
     * @return void
-
 
399
     * @covers ::raw_connect
398
     * Test SSL connection.
-
 
399
     */
400
     */
400
    #[WithoutErrorHandler]
401
    public function test_ssl_connection(): void {
401
    public function test_ssl_connection(): void {
Línea 402... Línea 402...
402
        $pgconnerr = 'pg_connect(): Unable to connect to PostgreSQL server:';
402
        $pgconnerr = 'pg_connect(): Unable to connect to PostgreSQL server:';
403
 
403