This isn't meant to be merged, it's just a test case illustrating that the serializer doesn't play nice with classes implementing \Iterator as pointed out in #127
If you clone this branch, run the tests, and put a breakpoint before the assert in testIterable, you'll see the serialized output of the Vector class in $data is:
This isn't meant to be merged, it's just a test case illustrating that the serializer doesn't play nice with classes implementing \Iterator as pointed out in #127
If you clone this branch, run the tests, and put a breakpoint before the assert in
testIterable
, you'll see the serialized output of the Vector class in$data
is:Which cannot be deserialized and the test fails
If you remove the \Iterator interface from the Vector class and re-run the tests, this is the serialized output in
$data
:Which can be deserialized and the test passes