feat: upgrade project to symfony 7.4

This commit is contained in:
Björn Fromme
2026-08-31 09:03:44 +02:00
parent c1fa08fed0
commit 010cfe56b2
29 changed files with 1391 additions and 1133 deletions
@@ -4,9 +4,9 @@ declare(strict_types=1);
namespace App\Tests\BusProNet\XmlParser;
use App\BusProNet\XmlCrawlerFactory;
use App\BusProNet\XmlParser\InsuranceParser;
use PHPUnit\Framework\TestCase;
use Symfony\Component\DomCrawler\Crawler;
class InsuranceParserTest extends TestCase
{
@@ -36,7 +36,7 @@ class InsuranceParserTest extends TestCase
</versicherungspakete>
</versicherungsstammdaten>';
$crawler = new Crawler($xmlContent);
$crawler = XmlCrawlerFactory::create($xmlContent);
$insurances = $this->parser->parse($crawler);
// Test all insurances are included (2 regular + 1 complementary + 1 package = 4 total)
@@ -112,7 +112,7 @@ class InsuranceParserTest extends TestCase
</versicherungspakete>
</versicherungsstammdaten>';
$crawler = new Crawler($xmlContent);
$crawler = XmlCrawlerFactory::create($xmlContent);
$insurances = $this->parser->parse($crawler);
$this->assertCount(2, $insurances);
@@ -134,7 +134,7 @@ class InsuranceParserTest extends TestCase
</versicherungen>
</versicherungsstammdaten>';
$crawler = new Crawler($xmlContent);
$crawler = XmlCrawlerFactory::create($xmlContent);
$insurances = $this->parser->parse($crawler);
$this->assertCount(1, $insurances);
@@ -155,7 +155,7 @@ class InsuranceParserTest extends TestCase
</versicherungspakete>
</versicherungsstammdaten>';
$crawler = new Crawler($xmlContent);
$crawler = XmlCrawlerFactory::create($xmlContent);
$insurances = $this->parser->parse($crawler);
$this->assertEmpty($insurances);
@@ -179,7 +179,7 @@ class InsuranceParserTest extends TestCase
</versicherungspakete>
</versicherungsstammdaten>';
$crawler = new Crawler($xmlContent);
$crawler = XmlCrawlerFactory::create($xmlContent);
$insurances = $this->parser->parse($crawler);
// Should include: normal insurance (178917), both complementary insurances (177270, 999999), and package (P1000320)