ILIAS  release_8 Revision v8.23
FilenameOverridePreProcessorTest.php
Go to the documentation of this file.
1 <?php
2 
4 
5 require_once('./libs/composer/vendor/autoload.php');
6 
11 
22 class FilenameOverridePreProcessorTest extends TestCase
23 {
29  {
30  $filename = 'renamed.ogg';
31 
33  $stream = Streams::ofString('Awesome stuff');
34  $result = $subject->process($stream, new Metadata($filename, $stream->getSize(), 'audio/ogg'));
35 
36  $this->assertSame(ProcessingStatus::OK, $result->getCode());
37  $this->assertSame('Filename changed', $result->getMessage());
38  }
39 }
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:43