Skip to content

Instantly share code, notes, and snippets.

@nicolas-grekas
Created October 14, 2022 20:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nicolas-grekas/3da652a51669baa40c99bd20e4a1b4dd to your computer and use it in GitHub Desktop.
Save nicolas-grekas/3da652a51669baa40c99bd20e4a1b4dd to your computer and use it in GitHub Desktop.
Symfony\Component\Cache\Tests\Marshaller\DefaultMarshallerTest::testNativeUnserializeNotFoundClass

Failed asserting that exception of type "UnserializationFailedException" matches expected exception "DomainException". Message was: "An Exception was thrown during unserialization" at src/Symfony/Component/Cache/Marshaller/DefaultMarshaller.php:96 src/Symfony/Component/Cache/Marshaller/DefaultMarshaller.php:74 src/Symfony/Component/Cache/Tests/Marshaller/DefaultMarshallerTest.php:62

Symfony\Component\Messenger\Tests\Transport\Serialization\PhpSerializerTest::testDecodingFailsWithBadFormat

Failed asserting that exception of type "UnserializationFailedException" matches expected exception "Symfony\Component\Messenger\Exception\MessageDecodingFailedException". Message was: "An Exception was thrown during unserialization" at src/Symfony/Component/Messenger/Transport/Serialization/PhpSerializer.php:78 src/Symfony/Component/Messenger/Transport/Serialization/PhpSerializer.php:54 src/Symfony/Component/Messenger/Tests/Transport/Serialization/PhpSerializerTest.php:51

Symfony\Component\Messenger\Tests\Transport\Serialization\PhpSerializerTest::testDecodingFailsWithBadClass

Failed asserting that exception of type "UnserializationFailedException" matches expected exception "Symfony\Component\Messenger\Exception\MessageDecodingFailedException". Message was: "An Exception was thrown during unserialization" at src/Symfony/Component/Messenger/Transport/Serialization/PhpSerializer.php:117 src/Symfony/Component/Messenger/Transport/Serialization/PhpSerializer.php:95 src/Symfony/Component/Messenger/Transport/Serialization/PhpSerializer.php:54 src/Symfony/Component/Messenger/Tests/Transport/Serialization/PhpSerializerTest.php:75

Symfony\Component\Messenger\Tests\Transport\Serialization\PhpSerializerWithClassNotFoundSupportTest::testDecodingFailsWithBadFormat

Failed asserting that exception of type "UnserializationFailedException" matches expected exception "Symfony\Component\Messenger\Exception\MessageDecodingFailedException". Message was: "An Exception was thrown during unserialization" at src/Symfony/Component/Messenger/Transport/Serialization/PhpSerializer.php:78 src/Symfony/Component/Messenger/Transport/Serialization/PhpSerializer.php:54 src/Symfony/Component/Messenger/Tests/Transport/Serialization/PhpSerializerTest.php:51

Symfony\Component\Config\Tests\ResourceCheckerConfigCacheTest::testCacheIsNotFreshWhenUnserializeFails

UnserializationFailedException: An Exception was thrown during unserialization

src/Symfony/Component/Config/ResourceCheckerConfigCache.php:159 src/Symfony/Component/Config/ResourceCheckerConfigCache.php:77 src/Symfony/Component/Config/Tests/ResourceCheckerConfigCacheTest.php:129

Caused by UnexpectedValueException:

src/Symfony/Component/Config/ResourceCheckerConfigCache.php:148 src/Symfony/Component/Config/ResourceCheckerConfigCache.php:77 src/Symfony/Component/Config/Tests/ResourceCheckerConfigCacheTest.php:129

Symfony\Component\Security\Http\Tests\Firewall\ContextListenerTest::testInvalidTokenInSession with data set #0 ('foo')

UnserializationFailedException: An Exception was thrown during unserialization

src/Symfony/Component/Security/Http/Firewall/ContextListener.php:267 src/Symfony/Component/Security/Http/Firewall/ContextListener.php:118 src/Symfony/Component/Security/Http/Firewall/AbstractListener.php:26 src/Symfony/Component/Security/Http/Tests/Firewall/ContextListenerTest.php:156

Caused by ErrorException: unserialize(): Error at offset 0 of 3 bytes

src/Symfony/Component/Security/Http/Firewall/ContextListener.php:267 src/Symfony/Component/Security/Http/Firewall/ContextListener.php:118 src/Symfony/Component/Security/Http/Firewall/AbstractListener.php:26 src/Symfony/Component/Security/Http/Tests/Firewall/ContextListenerTest.php:156

Symfony\Component\Security\Http\Tests\Firewall\ContextListenerTest::testInvalidTokenInSession with data set #1 ('O:8:"NotFound":0:{}')

UnserializationFailedException: An Exception was thrown during unserialization

src/Symfony/Component/Security/Http/Firewall/ContextListener.php:267 src/Symfony/Component/Security/Http/Firewall/ContextListener.php:118 src/Symfony/Component/Security/Http/Firewall/AbstractListener.php:26 src/Symfony/Component/Security/Http/Tests/Firewall/ContextListenerTest.php:156

Caused by ErrorException: Class not found: NotFound

src/Symfony/Component/Security/Http/Firewall/ContextListener.php:328 src/Symfony/Component/Security/Http/Firewall/ContextListener.php:267 src/Symfony/Component/Security/Http/Firewall/ContextListener.php:118 src/Symfony/Component/Security/Http/Firewall/AbstractListener.php:26 src/Symfony/Component/Security/Http/Tests/Firewall/ContextListenerTest.php

Symfony\Component\VarExporter\Tests\VarExporterTest::testPhpIncompleteClassesAreForbidden

Failed asserting that exception of type "UnserializationFailedException" matches expected exception "Symfony\Component\VarExporter\Exception\ClassNotFoundException". Message was: "An Exception was thrown during unserialization" at src/Symfony/Component/VarExporter/Internal/Registry.php:69 src/Symfony/Component/VarExporter/Internal/Registry.php:43 src/Symfony/Component/VarExporter/Tests/VarExporterTest.php:35

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment