Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F1820048
SimpleFileTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Size
513 B
Subscribers
None
SimpleFileTest.php
View Options
<?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
Details
Attached
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)
Attached To
rDAVCAL DokuWiki DAVCal PlugIn
Event Timeline
Log In to Comment