ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
SimpleFileTest.php
Go to the documentation of this file.
1
<?
php
2
3
namespace
Sabre\DAV
;
4
5
class
SimpleFileTest
extends
\PHPUnit_Framework_TestCase
{
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
}
Sabre\DAV
Sabre\DAV\SimpleFileTest\testAll
testAll()
Definition:
SimpleFileTest.php:7
PHPUnit_Framework_TestCase
Sabre\DAV\SimpleFile
SimpleFile.
Definition:
SimpleFile.php:16
Sabre\DAV\SimpleFileTest
Definition:
SimpleFileTest.php:5
php
libs
composer
vendor
sabre
dav
tests
Sabre
DAV
SimpleFileTest.php
Generated on Thu Jan 30 2025 19:01:29 for ILIAS by
1.8.13 (using
Doxyfile
)