Skip to content

Commit f86b7e3

Browse files
authored
Merge pull request #6 from peter279k/add_exception_msg
Test enhancement
2 parents 7505907 + 6850715 commit f86b7e3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/SluggerTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ public function testDefaultTransliteratorId()
4242
public function testUnsupportedTransliterationId()
4343
{
4444
$this->expectException(UnsupportedTransliteratorIdentifierException::class);
45+
$this->expectExceptionMessage('The transliterator identifier "Morrowind-Oblivion/KFC" is not supported');
4546

4647
$slugger = new Slugger();
4748

@@ -128,6 +129,7 @@ public function testSlugifyWithNumbers()
128129
public function testTransliterateWithInvalidCompound()
129130
{
130131
$this->expectException(UnableToCreateTransliteratorException::class);
132+
$this->expectExceptionMessage('Unable to create transliterator with compound "Russian-Latin/BGN; UndefinedCommand()"');
131133

132134
$slugger = new Slugger();
133135

0 commit comments

Comments
 (0)