21use PHPUnit\Framework\Attributes\BackupGlobals;
22use PHPUnit\Framework\Attributes\BackupStaticProperties;
23use PHPUnit\Framework\Attributes\PreserveGlobalState;
24use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;
25use PHPUnit\Framework\Attributes\Test;
26use PHPUnit\Framework\Attributes\Small;
28require_once(
'./vendor/composer/vendor/autoload.php');
33use PHPUnit\Framework\TestCase;
40#[BackupGlobals(false)]
41#[BackupStaticProperties(false)]
42#[PreserveGlobalState(false)]
43#[RunTestsInSeparateProcesses]
54 $result = $subject->process($stream,
new Metadata(
$filename, $stream->getSize(),
'audio/ogg'));
57 $this->assertSame(
'Filename changed', $result->getMessage());
Class FilenameOverridePreProcessorTest.
testProcessWhichShouldSucceed()
Class FilenameSanitizerPreProcessor.
Stream factory which enables the user to create streams without the knowledge of the concrete class.
static ofString(string $string)
Creates a new stream with an initial value.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...