Skip to content

Commit 75c0189

Browse files
committed
Remove tests for unserializing old (^2.14) parser results
I think it is not important so support unserializing parser results from another major version release. The tests made sense when they were added in a bugfix release back in #10684, but not anymore for the 4.0.x branch.
1 parent 8f95375 commit 75c0189

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

tests/Tests/ORM/Functional/ParserResultSerializationTest.php

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -68,22 +68,6 @@ static function (ParserResult $parserResult): ParserResult {
6868
];
6969
}
7070

71-
#[DataProvider('provideSerializedSingleSelectResults')]
72-
public function testUnserializeSingleSelectResult(string $serialized): void
73-
{
74-
$unserialized = unserialize($serialized);
75-
76-
$this->assertInstanceOf(ParserResult::class, $unserialized);
77-
$this->assertInstanceOf(ResultSetMapping::class, $unserialized->getResultSetMapping());
78-
$this->assertEquals(['name' => [0]], $unserialized->getParameterMappings());
79-
}
80-
81-
/** @return Generator<string, array{string}> */
82-
public static function provideSerializedSingleSelectResults(): Generator
83-
{
84-
yield '2.17.0' => [rtrim(file_get_contents(__DIR__ . '/ParserResults/single_select_2_17_0.txt'), "\n")];
85-
}
86-
8771
public function testSymfony44ProvidedData(): void
8872
{
8973
$sqlExecutor = new FinalizedSelectExecutor('test');
-2.31 KB
Binary file not shown.

0 commit comments

Comments
 (0)