From 69d903dc20415ace47c52439c248df31b5ebb48a Mon Sep 17 00:00:00 2001 From: umherirrender Date: Thu, 27 Nov 2014 21:12:58 +0100 Subject: [PATCH] Expand error message when parser tests found no hook The existing message is hard to understand and does not mention, that this is a problem in the parser test itself and not with phpunit. Before: 1) Warning The data provider specified for ParserTest_::testParserTest is invalid. Problem running hook After: 1) Warning The data provider specified for ParserTest_::testParser Problem running requested parser hook from the test file Change-Id: I0b4225cc9ab95e8dd048515315c789113dacf39e --- tests/testHelpers.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/testHelpers.inc b/tests/testHelpers.inc index acfdac8c4c..6d3ac2f5cb 100644 --- a/tests/testHelpers.inc +++ b/tests/testHelpers.inc @@ -471,7 +471,7 @@ class TestFileIterator implements Iterator { $hooksResult = $this->delayedParserTest->unleash( $this->parserTest ); if ( !$hooksResult ) { # Some hook reported an issue. Abort. - throw new MWException( "Problem running hook" ); + throw new MWException( "Problem running requested parser hook from the test file" ); } $this->test = array( -- 2.20.1