Kraken\Filesystem\FilesystemInterface::isFile PHP Méthode

isFile() public méthode

Check if path is a file.
public isFile ( string $path ) : boolean
$path string
Résultat boolean
    public function isFile($path);

Usage Example

 /**
  *
  */
 public function testApiIsFile_ThrowsException_WhenModelThrowsException()
 {
     $this->setExpectedException(ReadException::class);
     $path = 'path';
     $this->expect('getMetadata', [$path])->willThrow(new Exception());
     $this->fs->isFile($path);
 }