ILIAS  trunk Revision v11.0_alpha-1843-g9e1fad99175
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
FilenameOverridePreProcessorTest.php
Go to the documentation of this file.
1 <?php
2 
20 
27 
28 require_once('./vendor/composer/vendor/autoload.php');
29 
34 
40 #[BackupGlobals(false)]
41 #[BackupStaticProperties(false)]
42 #[PreserveGlobalState(false)]
43 #[RunTestsInSeparateProcesses]
44 class FilenameOverridePreProcessorTest extends TestCase
45 {
46  #[Test]
47 
48  public function testProcessWhichShouldSucceed(): void
49  {
50  $filename = 'renamed.ogg';
51 
53  $stream = Streams::ofString('Awesome stuff');
54  $result = $subject->process($stream, new Metadata($filename, $stream->getSize(), 'audio/ogg'));
55 
56  $this->assertSame(ProcessingStatus::OK, $result->getCode());
57  $this->assertSame('Filename changed', $result->getMessage());
58  }
59 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$filename
Definition: buildRTE.php:78
static ofString(string $string)
Creates a new stream with an initial value.
Definition: Streams.php:41