예제 #1
0
 /**
  * @expectedException \ntentan\utils\exceptions\FilesystemException
  */
 public function testExistsException()
 {
     $this->assertEquals(true, Filesystem::checkExists(vfsStream::url('fs/file')));
     Filesystem::checkExists(vfsStream::url('fs/nofile'));
 }
예제 #2
0
 public static function checkWriteSafety($path)
 {
     Filesystem::checkExists($path);
     Filesystem::checkWritable($path);
 }
예제 #3
0
파일: File.php 프로젝트: ntentan/utils
 public function getContents()
 {
     Filesystem::checkExists($this->path);
     return file_get_contents($this->path);
 }