/** * @dataProvider examplesDataProvider */ public function testRealFile($locale, $from, $to) { $filename = 'replacers.xml'; $locator = $this->prophesize(FileLocatorInterface::class); $locator->locate($filename)->willReturn(__DIR__ . '/../../DataFixtures/' . $filename); $loader = new ReplacerXmlLoader($locator->reveal()); $result = $loader->load($filename); $this->assertEquals($to, $result[$locale][$from]); }