Skip to content

Commit

Permalink
Normalize base path in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
siliconforks committed Nov 30, 2018
1 parent 8151e1c commit d162dd2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/IterableCodeExtractorTest.php
Expand Up @@ -4,6 +4,7 @@

use PHPUnit_Framework_TestCase;
use WP_CLI\I18n\IterableCodeExtractor;
use WP_CLI\Utils;


class Extractor_Test extends PHPUnit_Framework_TestCase {
Expand All @@ -15,7 +16,7 @@ public function setUp() {
/**
* PHP5.4 cannot set property with __DIR__ constant.
*/
self::$base = __DIR__ . '/data/';
self::$base = Utils\normalize_path( __DIR__ ) . '/data/';

$property = new \ReflectionProperty( 'WP_CLI\I18n\IterableCodeExtractor', 'dir' );
$property->setAccessible( true );
Expand Down

0 comments on commit d162dd2

Please sign in to comment.