Make WordPress Core


Ignore:
Timestamp:
06/03/2022 03:05:28 PM (16 months ago)
Author:
SergeyBiryukov
Message:

Tests: Add some test cases for path_join() with Windows paths.

Follow-up to [6984], [53457], [53460].

Props joyously.
See #55897.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/functions.php

    r53457 r53461  
    147147    public function path_join_data_provider() {
    148148        return array(
    149             // Absolute path.
     149            // Absolute paths.
    150150            'absolute path should return path' => array(
    151151                'base'     => 'base',
    152152                'path'     => '/path',
    153153                'expected' => '/path',
     154            ),
     155            'windows path with slashes'        => array(
     156                'base'     => 'base',
     157                'path'     => '//path',
     158                'expected' => '//path',
     159            ),
     160            'windows path with backslashes'    => array(
     161                'base'     => 'base',
     162                'path'     => '\\\\path',
     163                'expected' => '\\\\path',
    154164            ),
    155165            // Non-absolute paths.
Note: See TracChangeset for help on using the changeset viewer.