From 78cb650429debfdf0f07a668203ea21cf00a9ef4 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Fri, 25 Jun 2021 17:33:26 +0200 Subject: [PATCH] MbPathinfoTest: add additional test cases for `testMb_pathinfoWithOptions()` ... to ensure all supported options are covered by a test. --- test/PHPMailer/MbPathinfoTest.php | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/test/PHPMailer/MbPathinfoTest.php b/test/PHPMailer/MbPathinfoTest.php index 43f9ce09..153a443a 100644 --- a/test/PHPMailer/MbPathinfoTest.php +++ b/test/PHPMailer/MbPathinfoTest.php @@ -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' => '飛兒樂 團光茫',