public function testConvert() { $inputData = new \DOMDocument(); $inputData->load(__DIR__ . '/_files/formats_merged.xml'); $expectedResult = (require __DIR__ . '/_files/formats_merged.php'); $this->assertEquals($expectedResult, $this->_model->convert($inputData)); }
public function testConvert() { $inputData = new \DOMDocument(); $this->booleanUtilsMock->expects($this->any())->method('toBoolean')->willReturn(true); $inputData->load(__DIR__ . '/../../../../_files/zip_codes.xml'); $expectedResult = (require __DIR__ . '/../../../../_files/zip_codes.php'); $this->assertEquals($expectedResult, $this->model->convert($inputData)); }