-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
625a129
commit 1128964
Showing
4 changed files
with
90 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php namespace Tamtamchik\NameCase\Test; | ||
|
||
use PHPUnit\Framework\TestCase; | ||
use Tamtamchik\NameCase\Formatter; | ||
|
||
class PostNominalsTest extends TestCase | ||
{ | ||
/** Test `MBE` post-nominal */ | ||
public function testMbe() { | ||
$this->assertEquals('Adisa Azapagic MBE Freng Frsc Ficheme', Formatter::nameCase('ADISA AZAPAGIC MBE FRENG FRSC FICHEME')); | ||
} | ||
|
||
/** Test post-nominals exclusion. */ | ||
public function testExcludeString() { | ||
Formatter::excludePostNominals('MOst'); | ||
$this->assertEquals('Černý Most', Formatter::nameCase('ČERNÝ MOST')); | ||
} | ||
|
||
/** Test post-nominals exclusion. */ | ||
public function testExcludeArray() { | ||
Formatter::excludePostNominals(['MOst']); | ||
$this->assertEquals('Černý Most', Formatter::nameCase('ČERNÝ MOST')); | ||
} | ||
} |