Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 32... Línea 32...
32
 * @category   dml
32
 * @category   dml
33
 * @copyright  2020 Brendan Heywood <brendan@catalyst-au.net>
33
 * @copyright  2020 Brendan Heywood <brendan@catalyst-au.net>
34
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
34
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
35
 */
35
 */
36
class test_dml_sql_debugging_fixture {
36
class test_dml_sql_debugging_fixture {
37
    /** @var db handle */
-
 
38
    private $db;
-
 
39
 
-
 
40
    /**
37
    /**
41
     * constructor
38
     * Constructor
42
     * @param testcase $testcase test object
39
     * @param \moodle_database $db The database handle to use for this fixture
43
     */
40
     */
44
    public function __construct($testcase) {
41
    public function __construct(
45
        $this->db = $testcase->getMockBuilder(\moodle_database::class)
42
        /** @var \moodle_database The database handle to use for this fixture */
46
            ->getMockForAbstractClass();
43
        private \moodle_database $db,
-
 
44
    ) {
47
    }
45
    }
Línea 48... Línea 46...
48
 
46
 
49
    /**
47
    /**
50
     * Get db handle
48
     * Get db handle