ILIAS  release_7 Revision v7.30-3-g800a261c036
FilenameOverridePreProcessorTest.php
Go to the documentation of this file.
1<?php
2
20
21require_once('./libs/composer/vendor/autoload.php');
22require_once("./include/Unicode/UtfNormal.php");
23
27use PHPUnit\Framework\TestCase;
28
40{
41
47 {
48 $filename = 'renamed.ogg';
49
51 $stream = Streams::ofString('Awesome stuff');
52 $result = $subject->process($stream, new Metadata($filename, $stream->getSize(), 'audio/ogg'));
53
54 $this->assertSame(ProcessingStatus::OK, $result->getCode());
55 $this->assertSame('Filename changed', $result->getMessage());
56 }
57}
$result
$filename
Definition: buildRTE.php:89
An exception for terminatinating execution or to throw for unit testing.
Class Streams Stream factory which enables the user to create streams without the knowledge of the co...
Definition: Streams.php:17
static ofString($string)
Creates a new stream with an initial value.
Definition: Streams.php:25
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...