Jeroen De Dauw has submitted this change and it was merged.
Change subject: Add YearTimeParser exception message test
......................................................................
Add YearTimeParser exception message test
Change-Id: I97eca76fc848cb272eb4868d6be2a03780caf67a
---
M lib/tests/phpunit/parsers/YearTimeParserTest.php
1 file changed, 8 insertions(+), 0 deletions(-)
Approvals:
WikidataJenkins: Verified
Jeroen De Dauw: Looks good to me, approved
diff --git a/lib/tests/phpunit/parsers/YearTimeParserTest.php
b/lib/tests/phpunit/parsers/YearTimeParserTest.php
index 57ce7da..c5187cc 100644
--- a/lib/tests/phpunit/parsers/YearTimeParserTest.php
+++ b/lib/tests/phpunit/parsers/YearTimeParserTest.php
@@ -145,4 +145,12 @@
return $argLists;
}
+ /**
+ * @expectedException \ValueParsers\ParseException
+ * @expectedExceptionMessage Failed to parse year: just invalid
+ */
+ public function testParseExceptionMessage() {
+ $this->getInstance()->parse( 'just invalid' );
+ }
+
}
\ No newline at end of file
--
To view, visit https://gerrit.wikimedia.org/r/120240
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I97eca76fc848cb272eb4868d6be2a03780caf67a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Addshore <[email protected]>
Gerrit-Reviewer: Jeroen De Dauw <[email protected]>
Gerrit-Reviewer: WikidataJenkins <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits