uawdijnntqw1x1x1
IP : 216.73.216.28
Hostname : toronto-dev2
Kernel : Linux toronto-dev2 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
srv
/
users
/
craft4
/
apps
/
craft4-newsite-space
/
vendor
/
theiconic
/
name-parser
/
tests
/
GermanParserTest.php
/
/
<?php namespace TheIconic\NameParser; use PHPUnit\Framework\TestCase; use TheIconic\NameParser\Language\German; class GermanParserTest extends TestCase { /** * @return array */ public function provider() { return [ [ 'Herr Schmidt', [ 'salutation' => 'Herr', 'lastname' => 'Schmidt', ] ], [ 'Frau Maria Lange', [ 'salutation' => 'Frau', 'firstname' => 'Maria', 'lastname' => 'Lange', ] ], [ 'Hr. Juergen von der Lippe', [ 'salutation' => 'Herr', 'firstname' => 'Juergen', 'lastname' => 'von der Lippe', ] ], [ 'Fr. Charlotte von Stein', [ 'salutation' => 'Frau', 'firstname' => 'Charlotte', 'lastname' => 'von Stein', ] ], ]; } /** * @dataProvider provider * * @param $input * @param $expectation */ public function testParse($input, $expectation) { $parser = new Parser([ new German() ]); $name = $parser->parse($input); $this->assertInstanceOf(Name::class, $name); $this->assertEquals($expectation, $name->getAll()); } }
/srv/users/craft4/apps/craft4-newsite-space/vendor/theiconic/name-parser/tests/GermanParserTest.php