Properly output the name of the file in assertFileContains
authorDavid Causse <dcausse@wikimedia.org>
Fri, 10 May 2019 13:57:58 +0000 (15:57 +0200)
committerDavid Causse <dcausse@wikimedia.org>
Fri, 10 May 2019 14:02:34 +0000 (16:02 +0200)
Change-Id: If02d094049bd8ec21d5f180382ccc4bc6202f981

tests/phpunit/MediaWikiTestCase.php

index 1e70c57..329f0ba 100644 (file)
@@ -2367,7 +2367,7 @@ abstract class MediaWikiTestCase extends PHPUnit\Framework\TestCase {
                if ( $createIfMissing ) {
                        if ( !file_exists( $fileName ) ) {
                                file_put_contents( $fileName, $actualData );
-                               $this->markTestSkipped( 'Data file $fileName does not exist' );
+                               $this->markTestSkipped( "Data file $fileName does not exist" );
                        }
                } else {
                        self::assertFileExists( $fileName );