deleteIfExists() 공개 정적인 메소드

Deletes file if exists, otherwise return false if the file does not exist.
public static deleteIfExists ( $path ) : boolean
$path
리턴 boolean
예제 #1
0
 /**
  * @test
  */
 public function shouldReturnFalseIfNotExistsAnTryToDelete()
 {
     //when
     $deleteIfExists = Files::deleteIfExists('/broken/path/file');
     //then
     $this->assertFalse($deleteIfExists);
 }