Proyectos de Subversion Moodle

Rev

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

Rev 11 Rev 1441
Línea 23... Línea 23...
23
 * @package    core_antivirus
23
 * @package    core_antivirus
24
 * @category   test
24
 * @category   test
25
 * @copyright  2016 Ruslan Kabalin, Lancaster University.
25
 * @copyright  2016 Ruslan Kabalin, Lancaster University.
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 antivirus_test extends advanced_testcase {
28
final class antivirus_test extends advanced_testcase {
Línea 29... Línea 29...
29
 
29
 
30
    /**
30
    /**
31
     * @var string Path to the tempfile created for use with AV scanner tests
31
     * @var string Path to the tempfile created for use with AV scanner tests
32
     */
32
     */
Línea 33... Línea 33...
33
    protected $tempfile;
33
    protected $tempfile;
34
 
34
 
-
 
35
    protected function setUp(): void {
35
    protected function setUp(): void {
36
        global $CFG;
36
        global $CFG;
37
        parent::setUp();
Línea 37... Línea 38...
37
        // Use our special testable fixture plugin.
38
        // Use our special testable fixture plugin.
Línea 67... Línea 68...
67
        return $av->get_result()->get_status();
68
        return $av->get_result()->get_status();
68
    }
69
    }
Línea 69... Línea 70...
69
 
70
 
70
    protected function tearDown(): void {
71
    protected function tearDown(): void {
-
 
72
        @unlink($this->tempfile);
71
        @unlink($this->tempfile);
73
        parent::tearDown();
Línea 72... Línea 74...
72
    }
74
    }
73
 
75
 
74
    public function test_manager_get_antivirus(): void {
76
    public function test_manager_get_antivirus(): void {