function it_requires_float_for_serialization() { $this->shouldThrow(InvalidValueException::class)->during("serialize", [new \stdClass()]); }