size() 공개 정적인 메소드

Returns a size of the given file.
public static size ( string $path ) : integer
$path string
리턴 integer
예제 #1
0
 /**
  * @test
  */
 public function shouldReturnFileSize()
 {
     //given
     $filePath = Path::joinWithTemp('files_test');
     file_put_contents($filePath, 'test');
     //when
     $size = Files::size($filePath);
     //then
     $this->assertEquals(4, $size);
 }