Skip to content

Commit ad83c65

Browse files
Merge branch '4.4' into 5.0
* 4.4: Allow email message to have "To", "Cc", or "Bcc" header to be valid [FrameworkBundle] Removed detection of Serializer < 3.2 Update pull request template for 5.1. [Security/Core] fix PHP8 deprecation
2 parents bf1f1f9 + d4883d9 commit ad83c65

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

Tests/CacheWarmer/SerializerCacheWarmerTest.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,6 @@ public function testWarmUpWithoutLoader()
5858
*/
5959
public function testClassAutoloadException()
6060
{
61-
if (!class_exists(CacheClassMetadataFactory::class) || !method_exists(XmlFileLoader::class, 'getMappedClasses') || !method_exists(YamlFileLoader::class, 'getMappedClasses')) {
62-
$this->markTestSkipped('The Serializer default cache warmer has been introduced in the Serializer Component version 3.2.');
63-
}
64-
6561
$this->assertFalse(class_exists($mappedClass = 'AClassThatDoesNotExist_FWB_CacheWarmer_SerializerCacheWarmerTest', false));
6662

6763
$warmer = new SerializerCacheWarmer([new YamlFileLoader(__DIR__.'/../Fixtures/Serialization/Resources/does_not_exist.yaml')], tempnam(sys_get_temp_dir(), __FUNCTION__));
@@ -86,10 +82,6 @@ public function testClassAutoloadExceptionWithUnrelatedException()
8682
$this->expectException(\DomainException::class);
8783
$this->expectExceptionMessage('This exception should not be caught by the warmer.');
8884

89-
if (!class_exists(CacheClassMetadataFactory::class) || !method_exists(XmlFileLoader::class, 'getMappedClasses') || !method_exists(YamlFileLoader::class, 'getMappedClasses')) {
90-
$this->markTestSkipped('The Serializer default cache warmer has been introduced in the Serializer Component version 3.2.');
91-
}
92-
9385
$this->assertFalse(class_exists($mappedClass = 'AClassThatDoesNotExist_FWB_CacheWarmer_SerializerCacheWarmerTest', false));
9486

9587
$warmer = new SerializerCacheWarmer([new YamlFileLoader(__DIR__.'/../Fixtures/Serialization/Resources/does_not_exist.yaml')], tempnam(sys_get_temp_dir(), __FUNCTION__));

0 commit comments

Comments
 (0)