/** * @expectedException \ntentan\utils\exceptions\FilesystemException */ public function testExistsException() { $this->assertEquals(true, Filesystem::checkExists(vfsStream::url('fs/file'))); Filesystem::checkExists(vfsStream::url('fs/nofile')); }
public static function checkWriteSafety($path) { Filesystem::checkExists($path); Filesystem::checkWritable($path); }
public function getContents() { Filesystem::checkExists($this->path); return file_get_contents($this->path); }