setPublic() публичный Метод

Sets visibility of file or directory to public.
public setPublic ( string $path = '' )
$path string
Пример #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);
 }