removeSortingInformations() 공개 정적인 메소드

public static removeSortingInformations ( string $filename ) : string
$filename string
리턴 string
예제 #1
0
 /**
  * Get the possible output file names for a source file.
  *
  * @param Config $config
  * @param string $part
  * @return string[]
  */
 public static function getFilenames(Config $config, $part)
 {
     $extensions = implode('|', array_map('preg_quote', $config['valid_content_extensions'])) . '|html';
     $raw = preg_replace('/(.*)?\\.(' . $extensions . ')$/', '$1', $part);
     $raw = Builder::removeSortingInformations($raw);
     return ["{$raw}.html", $raw];
 }
예제 #2
0
 /**
  * @dataProvider providerRemoveSorting
  */
 public function testRemoveSorting($value, $expected)
 {
     $this->assertEquals($expected, Builder::removeSortingInformations($value));
 }