Page MenuHomePhabricator

SimpleFileTest.php
No OneTemporary

SimpleFileTest.php

<?php
namespace Sabre\DAV;
class SimpleFileTest extends \PHPUnit_Framework_TestCase {
function testAll() {
$file = new SimpleFile('filename.txt','contents','text/plain');
$this->assertEquals('filename.txt', $file->getName());
$this->assertEquals('contents', $file->get());
$this->assertEquals('8', $file->getSize());
$this->assertEquals('"' . sha1('contents') . '"', $file->getETag());
$this->assertEquals('text/plain', $file->getContentType());
}
}

File Metadata

Mime Type
text/x-php
Expires
Sat, Dec 21, 6:04 PM (2 w, 2 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
913711
Default Alt Text
SimpleFileTest.php (513 B)

Event Timeline