ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Sabre\DAV\SimpleFileTest Class Reference
+ Inheritance diagram for Sabre\DAV\SimpleFileTest:
+ Collaboration diagram for Sabre\DAV\SimpleFileTest:

Public Member Functions

 testAll ()
 

Detailed Description

Definition at line 5 of file SimpleFileTest.php.

Member Function Documentation

◆ testAll()

Sabre\DAV\SimpleFileTest::testAll ( )

Definition at line 7 of file SimpleFileTest.php.

7  {
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  }

The documentation for this class was generated from the following file: