Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 25... Línea 25...
25
 * @copyright  2021 Brendan Heywood (brendan@catalyst-au.net)
25
 * @copyright  2021 Brendan Heywood (brendan@catalyst-au.net)
26
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
26
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
27
 */
27
 */
28
class pdflib_test extends \advanced_testcase {
28
class pdflib_test extends \advanced_testcase {
Línea 29... Línea 29...
29
 
29
 
30
    public function test_gettcpdf_producer() {
30
    public function test_gettcpdf_producer(): void {
31
        global $CFG;
31
        global $CFG;
Línea 32... Línea 32...
32
        require_once($CFG->libdir.'/pdflib.php');
32
        require_once($CFG->libdir.'/pdflib.php');
33
 
33
 
34
        // This is to reduce the information disclosure in PDF metadata.
34
        // This is to reduce the information disclosure in PDF metadata.
35
        // If we upgrade TCPDF keep it just the major version.
35
        // If we upgrade TCPDF keep it just the major version.
36
        $producer = TCPDF_STATIC::getTCPDFProducer();
36
        $producer = TCPDF_STATIC::getTCPDFProducer();
Línea 37... Línea 37...
37
        $this->assertEquals('TCPDF (http://www.tcpdf.org)', $producer);
37
        $this->assertEquals('TCPDF (http://www.tcpdf.org)', $producer);
38
    }
38
    }
39
 
39
 
Línea 40... Línea 40...
40
    public function test_qrcode() {
40
    public function test_qrcode(): void {