Make WordPress Core

Changeset 42819


Ignore:
Timestamp:
03/09/2018 05:47:39 PM (7 years ago)
Author:
SergeyBiryukov
Message:

Tests: Skip symlinked theme file tests if symlink() is not available, e.g. in PHP 5.2.x on Windows.

See #43508.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/link/themeFile.php

    r42812 r42819  
    66
    77    public static function wpSetUpBeforeClass( WP_UnitTest_Factory $factory ) {
     8        if ( ! function_exists( 'symlink' ) ) {
     9            self::markTestSkipped( 'symlink() is not available.' );
     10        }
    811        if ( ! @symlink( DIR_TESTDATA . '/theme-file-parent', WP_CONTENT_DIR . '/themes/theme-file-parent' ) ) {
    912            self::markTestSkipped( 'Could not create parent symlink.' );
Note: See TracChangeset for help on using the changeset viewer.