From: David Causse Date: Fri, 10 May 2019 13:57:58 +0000 (+0200) Subject: Properly output the name of the file in assertFileContains X-Git-Tag: 1.34.0-rc.0~1725 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/journal.php?a=commitdiff_plain;h=888a8ec6852a3274107d1f307ef3d295a7947623;p=lhc%2Fweb%2Fwiklou.git Properly output the name of the file in assertFileContains Change-Id: If02d094049bd8ec21d5f180382ccc4bc6202f981 --- diff --git a/tests/phpunit/MediaWikiTestCase.php b/tests/phpunit/MediaWikiTestCase.php index 1e70c5788e..329f0ba12d 100644 --- a/tests/phpunit/MediaWikiTestCase.php +++ b/tests/phpunit/MediaWikiTestCase.php @@ -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 );