feat: refactoring of xml parsers

This commit is contained in:
Björn Fromme
2025-01-24 17:10:49 +01:00
parent 11f1508640
commit 6730c243f6
49 changed files with 1414 additions and 1235 deletions
@@ -2,7 +2,7 @@
namespace App\Tests\BusProNet\DataLoader;
use App\BusProNet\XmlLoader\HotelXmlLoader;
use App\BusProNet\XmlLoader\HotelLoader;
use App\BusProNet\Model\Hotel;
use PHPUnit\Framework\TestCase;
@@ -10,7 +10,7 @@ class HotelDataLoaderTest extends TestCase
{
public function testParse(): void
{
$loader = new HotelXmlLoader(__DIR__.'/../../Resources');
$loader = new HotelLoader(__DIR__.'/../../Resources');
$hotelId = 163113;
$xml = $loader->loadById($hotelId, 'hotels_data.xml');