StubsEntitySerializerTest
class StubsEntitySerializerTest extends TestCase (View source)
Methods
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
INF, -INF and NAN are not representable in JSON. They used to reach json_encode() unchanged, where JSON_PARTIAL_OUTPUT_ON_ERROR replaced them with the integer 0 — so the cached value of \INF was byte-identical to the cached value of a constant that really is 0, and \INF and \NAN were indistinguishable from each other.
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
Parent interfaces were serialized as bare short names, so a namespaced parent became indistinguishable from a global one of the same name after a cache round-trip.
No description
No description
No description
No description
Caches written before the field existed simply have no key; deserialization must treat that as "no version recorded" rather than fail.
Details
protected void
setUp()
No description
void
testSerializeClassWithStubMetadata()
No description
void
testSerializeMethodWithStubMetadata()
No description
void
testSerializeParameterWithStubMetadata()
No description
void
testSerializePropertyWithStubMetadata()
No description
void
testPropertyDefaultValueSurvivesRoundtrip()
No description
void
testPropertyWithoutDefaultValueSurvivesRoundtrip()
No description
void
testSerializeFunctionWithStubMetadata()
No description
void
testSerializeInterfaceWithStubMetadata()
No description
void
testSerializeEnumWithStubMetadata()
No description
void
testSerializeConstantWithStubMetadata()
No description
void
testNonFiniteConstantValuesAreSerializedAsDistinguishableSentinels(float $value, string $expected)
INF, -INF and NAN are not representable in JSON. They used to reach json_encode() unchanged, where JSON_PARTIAL_OUTPUT_ON_ERROR replaced them with the integer 0 — so the cached value of \INF was byte-identical to the cached value of a constant that really is 0, and \INF and \NAN were indistinguishable from each other.
static array
nonFiniteConstantValues()
No description
void
testFiniteConstantValuesAreNotTurnedIntoSentinels()
No description
void
testDeserializeClassWithStubMetadata()
No description
void
testDeserializeMethodWithStubMetadata()
No description
void
testDeserializeParameterWithStubMetadata()
No description
void
testDeserializePropertyWithStubMetadata()
No description
void
testDeserializeFunctionWithStubMetadata()
No description
void
testDeserializeConstantWithStubMetadata()
No description
void
testRoundTripSerializationClassWithStubMetadata()
No description
void
testRoundTripSerializationFunctionWithStubMetadata()
No description
void
testSerializeUnknownEntityType()
No description
void
testParentInterfaceIsSerializedAsAFullyQualifiedName()
Parent interfaces were serialized as bare short names, so a namespaced parent became indistinguishable from a global one of the same name after a cache round-trip.
void
testParentInterfaceIdSurvivesARoundtrip()
No description
void
testParentInterfaceWithoutAnIdFallsBackToItsName()
No description
void
testFunctionDeprecatedSinceVersionSurvivesARoundtrip()
No description
void
testMethodAndParameterDeprecatedSinceVersionSurviveARoundtrip()
No description
void
testMissingDeprecatedSinceVersionDeserializesToNull()
Caches written before the field existed simply have no key; deserialization must treat that as "no version recorded" rather than fail.