示例#1
0
 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);
 }