1<?php
2
3namespace Sabre\DAV;
4
5class 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}
20