예제 #1
0
파일: upload.php 프로젝트: uzura8/flockbird
 public static function get_filepath_from_file_path($file_path)
 {
     return Util_File::get_path_partial($file_path, 3);
 }
예제 #2
0
파일: file.php 프로젝트: uzura8/flockbird
 /**
  * @dataProvider get_path_partial_provider
  */
 public function test_get_path_partial($path = null, $length = null, $offset = null, $expected = null)
 {
     $test = Util_File::get_path_partial($path, $length, $offset);
     $this->assertEquals($expected, $test);
 }