Make WordPress Core

Ticket #59406: 59406.diff

File 59406.diff, 638 bytes (added by david.binda, 9 months ago)
  • tests/phpunit/includes/class-wp-test-stream.php

     
    201201         */
    202202        public function mkdir( $path, $mode, $options ) {
    203203                $this->open( $path );
    204                 $plainfile = rtrim( $this->file, '/' );
    205204
    206                 if ( isset( WP_Test_Stream::$data[ $this->bucket ][ $file ] ) ) {
     205                if ( isset( WP_Test_Stream::$data[ $this->bucket ][ rtrim( $this->file, '/' ) . '/' ] ) ) {
    207206                        return false;
    208207                }
    209208                $dir_ref = & $this->get_directory_ref();