MbPathinfoTest: add additional test cases for `testMb_pathinfoWithOptions()`

... to ensure all supported options are covered by a test.
This commit is contained in:
jrfnl 2021-06-25 17:33:26 +02:00
parent 487551ddac
commit 78cb650429
1 changed files with 20 additions and 0 deletions

View File

@ -141,6 +141,26 @@ final class MbPathinfoTest extends TestCase
'options' => PATHINFO_BASENAME,
'expected' => '飛兒樂 團光茫.mp3',
],
'Option: PATHINFO_EXTENSION' => [
'options' => PATHINFO_EXTENSION,
'expected' => 'mp3',
],
'Option: PATHINFO_FILENAME' => [
'options' => PATHINFO_FILENAME,
'expected' => '飛兒樂 團光茫',
],
'Option: dirname' => [
'options' => 'dirname',
'expected' => '/mnt/files',
],
'Option: basename' => [
'options' => 'basename',
'expected' => '飛兒樂 團光茫.mp3',
],
'Option: extension' => [
'options' => 'extension',
'expected' => 'mp3',
],
'Option: filename' => [
'options' => 'filename',
'expected' => '飛兒樂 團光茫',