diff options
| author | Greg Roach <fisharebest@gmail.com> | 2016-10-19 10:06:09 +0100 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2016-10-19 10:06:39 +0100 |
| commit | 9797fe2e6d6eb3d34559dcf546f47c58bc50777b (patch) | |
| tree | ebe3a69f99f166d6547b305bf0ffdc84581e79cc /tests/app/SurnameTradition | |
| parent | 2c0e4ded65b906280bd016b73eed5db6f933c454 (diff) | |
| download | webtrees-9797fe2e6d6eb3d34559dcf546f47c58bc50777b.tar.gz webtrees-9797fe2e6d6eb3d34559dcf546f47c58bc50777b.tar.bz2 webtrees-9797fe2e6d6eb3d34559dcf546f47c58bc50777b.zip | |
Dutch surname prefixes contain apostrophes
Diffstat (limited to 'tests/app/SurnameTradition')
| -rw-r--r-- | tests/app/SurnameTradition/PaternalSurnameTraditionTest.php | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/app/SurnameTradition/PaternalSurnameTraditionTest.php b/tests/app/SurnameTradition/PaternalSurnameTraditionTest.php index c6f481b50f..6449bce606 100644 --- a/tests/app/SurnameTradition/PaternalSurnameTraditionTest.php +++ b/tests/app/SurnameTradition/PaternalSurnameTraditionTest.php @@ -110,6 +110,38 @@ class PaternalSurnameTraditionTest extends \PHPUnit_Framework_TestCase { } /** + * Test new child names + * + * @covers Fisharebest\Webtrees\SurnameTradition\PaternalSurnameTradition + */ + public function testNewChildNamesWithDutchSpfx() { + $this->assertSame( + array('NAME' => '/\'t White/', 'SPFX' => '\'t', 'SURN' => 'White'), + $this->surname_tradition->newChildNames('John /\'t White/', 'Mary /van Black/', 'U') + ); + $this->assertSame( + array('NAME' => '/’t White/', 'SPFX' => '’t', 'SURN' => 'White'), + $this->surname_tradition->newChildNames('John /’t White/', 'Mary /van Black/', 'U') + ); + } + + /** + * Test new child names + * + * @covers Fisharebest\Webtrees\SurnameTradition\PaternalSurnameTradition + */ + public function testNewChildNamesWithMultipleDutchSpfx() { + $this->assertSame( + array('NAME' => '/van \'t White/', 'SPFX' => 'van \'t', 'SURN' => 'White'), + $this->surname_tradition->newChildNames('John /van \'t White/', 'Mary /van Black/', 'U') + ); + $this->assertSame( + array('NAME' => '/van ’t White/', 'SPFX' => 'van ’t', 'SURN' => 'White'), + $this->surname_tradition->newChildNames('John /van ’t White/', 'Mary /van Black/', 'U') + ); + } + + /** * Test new father names * * @covers Fisharebest\Webtrees\SurnameTradition\PaternalSurnameTradition |
