Kraken\Filesystem\FilesystemInterface::setPublic PHP Method

setPublic() public method

Sets visibility of file or directory to public.
public setPublic ( string $path = '' )
$path string
    public function setPublic($path = '');

Usage Example

コード例 #1
0
 /**
  *
  */
 public function testApiSetPublic_ThrowsException_WhenModelThrows()
 {
     $this->setExpectedException(WriteException::class);
     $path = 'path';
     $this->expect('setVisibility', [$path, 'public'])->willThrow(new Exception());
     $this->fs->setPublic($path);
 }