Addshore has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/120240

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(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase 
refs/changes/40/120240/1

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: newchange
Gerrit-Change-Id: I97eca76fc848cb272eb4868d6be2a03780caf67a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Addshore <addshorew...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to