/** * @dataProvider nameDataProvider */ public function testParseNames($name, $expected) { $bibliographicName = new BibliographicName(); $result = $bibliographicName->parse($name); $this->assertEquals($expected, $result); }
/** * @dataProvider providerNames */ public function testParseNameForPabloDaSilva($nameString, $expected) { $bibliographicName = new BibliographicName(); $result = $bibliographicName->parse($nameString); $this->assertEquals($expected, $result); }