feat: upgrade project to symfony 7.4
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user