Skip to content

Commit 48bbe0c

Browse files
committed
improved formatter test example.
1 parent 3b73236 commit 48bbe0c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/functional/org/nameapi/client/services/formatter/personnameformatter/PersonNameFormatterServiceTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ public function testFormat() {
1515
$personNameFormatter = $this->makeServiceFactory()->formatterServices()->personNameFormatter();
1616
$inputPerson = NaturalInputPerson::builder()
1717
->name(InputPersonName::westernBuilder()
18-
->fullname( "john kennedy" )
18+
->fullname( "john f. kennedy" )
1919
->build())
2020
->build();
2121
$formatterResult = $personNameFormatter->format($inputPerson, new FormatterProperties());
22-
$this->assertEquals('John Kennedy', $formatterResult->getFormatted());
22+
$this->assertEquals('John F. Kennedy', $formatterResult->getFormatted());
2323
}
2424

2525
}

0 commit comments

Comments
 (0)