From: Kunal Mehta Date: Mon, 31 Aug 2015 06:42:56 +0000 (-0700) Subject: Skip monolog tests if monolog is not installed X-Git-Tag: 1.31.0-rc.0~10209 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=fa1123a012ad03d75f013d20e8c35175dd0e9397;p=lhc%2Fweb%2Fwiklou.git Skip monolog tests if monolog is not installed Change-Id: Ib3f4f76651da183901634a0ac6787666e47d74d4 --- diff --git a/tests/phpunit/includes/debug/logger/monolog/LineFormatterTest.php b/tests/phpunit/includes/debug/logger/monolog/LineFormatterTest.php index 05c32a0463..f12cf5bd80 100644 --- a/tests/phpunit/includes/debug/logger/monolog/LineFormatterTest.php +++ b/tests/phpunit/includes/debug/logger/monolog/LineFormatterTest.php @@ -28,6 +28,13 @@ use TestingAccessWrapper; class LineFormatterTest extends MediaWikiTestCase { + public function setUp() { + if ( !class_exists( 'Monolog\Formatter\LineFormatter' ) ) { + $this->markTestSkipped( 'This test requires monolog to be installed' ); + } + parent::setUp(); + } + /** * @covers LineFormatter::normalizeException */