ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
FilenameOverridePreProcessorTest.php
Go to the documentation of this file.
1 <?php
2 
4 
5 require_once('./libs/composer/vendor/autoload.php');
6 
11 
23 {
24 
30  {
31  $filename = 'renamed.ogg';
32 
34  $stream = Streams::ofString('Awesome stuff');
35  $result = $subject->process($stream, new Metadata($filename, $stream->getSize(), 'audio/ogg'));
36 
37  $this->assertSame(ProcessingStatus::OK, $result->getCode());
38  $this->assertSame('Filename changed', $result->getMessage());
39  }
40 }
$result
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static ofString($string)
Creates a new stream with an initial value.
Definition: Streams.php:30
$filename
Definition: buildRTE.php:89