diff --git a/tests/phpunit/tests/functions.php b/tests/phpunit/tests/functions.php index 10d240b35b..c122dbd4e3 100644 --- a/tests/phpunit/tests/functions.php +++ b/tests/phpunit/tests/functions.php @@ -146,12 +146,22 @@ class Tests_Functions extends WP_UnitTestCase { */ public function path_join_data_provider() { return array( - // Absolute path. + // Absolute paths. 'absolute path should return path' => array( 'base' => 'base', 'path' => '/path', 'expected' => '/path', ), + 'windows path with slashes' => array( + 'base' => 'base', + 'path' => '//path', + 'expected' => '//path', + ), + 'windows path with backslashes' => array( + 'base' => 'base', + 'path' => '\\\\path', + 'expected' => '\\\\path', + ), // Non-absolute paths. 'join base and path' => array( 'base' => 'base',