19 declare(strict_types=1);
21 require_once __DIR__ .
'/bootstrap.php';
31 protected function setUp(): void
35 if (!defined(
'IL_VIRUS_SCAN_COMMAND')) {
36 define(
"IL_VIRUS_SCAN_COMMAND",
'phpunitscan');
39 if (!defined(
'IL_VIRUS_CLEAN_COMMAND')) {
40 define(
"IL_VIRUS_CLEAN_COMMAND",
'phpunitclean');
43 $logger = $this->getMockBuilder(ilLogger::class)->disableOriginalConstructor()->getMock();
51 public static function getRootLogger():
ilLogger 56 public function getComponentLogger(
string $a_component_id):
ilLogger 62 $this->
setGlobalVariable(
'ilias', $this->getMockBuilder(ILIAS::class)->disableOriginalConstructor()->getMock());
65 $this->getMockBuilder(ilLanguage::class)->disableOriginalConstructor()->getMock()
70 $this->
setGlobalVariable(
'ilErr', $this->getMockBuilder(ilErrorHandling::class)->disableOriginalConstructor()->getMock());
75 define(
"IL_VIRUS_SCANNER",
'Sophos');
82 define(
"IL_VIRUS_SCANNER",
'AntiVir');
89 define(
"IL_VIRUS_SCANNER",
'ClamAV');
96 define(
"IL_VIRUS_SCANNER",
'icap');
97 define(
"IL_ICAP_CLIENT",
'phpunit');
testSophosScanStrategyCanBeRetrievedAccordingToGlobalSetting()
testIcapClientScanStrategyCanBeRetrievedAccordingToGlobalSetting()
setGlobalVariable(string $name, $value)
__construct(Container $dic, ilPlugin $plugin)
testAntiVirScanStrategyCanBeRetrievedAccordingToGlobalSetting()
testClamAvScanStrategyCanBeRetrievedAccordingToGlobalSetting()