ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
SimpleFileTest.php
Go to the documentation of this file.
1<?php
2
3namespace Sabre\DAV;
4
6
7 function testAll() {
8
9 $file = new SimpleFile('filename.txt', 'contents', 'text/plain');
10
11 $this->assertEquals('filename.txt', $file->getName());
12 $this->assertEquals('contents', $file->get());
13 $this->assertEquals(8, $file->getSize());
14 $this->assertEquals('"' . sha1('contents') . '"', $file->getETag());
15 $this->assertEquals('text/plain', $file->getContentType());
16
17 }
18
19}
An exception for terminatinating execution or to throw for unit testing.