mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-13 10:09:27 +00:00
0bc0a09bf4
- application/extensions file system permission now is 775 - application/logs file system permission now is 775 - Added extensions directory in application/: config, controllers, helpers, hooks, libraries, models, views and widgets - Added view views/extensions/manage.php - Added controller controllers/system/extensions/Manager.php - Added library ExtensionsLib to manage extensions - Added model models/system/Extensions_model.php - Moved code related to print out info from MigrationLib to EPrintfLib
20 lines
512 B
PHP
20 lines
512 B
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('"' . md5('contents') . '"', $file->getETag());
|
|
$this->assertEquals('text/plain', $file->getContentType());
|
|
|
|
}
|
|
|
|
}
|