Ah, indeed. Looks like a bug.


On Fri, Oct 11, 2013 at 5:49 PM, William Durand <notifications@github.com>wrote:

> In tests/Hateoas/HateoasBuilder.php:
>
> > +
> > +    public function testSerializeInlineJson()
> > +    {
> > +        $foo1 = new Foo1();
> > +        $foo2 = new Foo2();
> > +        $foo3 = new Foo3();
> > +        $foo1->inline = $foo2;
> > +        $foo2->inline = $foo3;
> > +
> > +        $hateoas = TestedHateoasBuilder::buildHateoas();
> > +
> > +        $this
> > +            ->string($hateoas->serialize($foo1, 'json'))
> > +                ->isEqualTo(
> > +                    '{'.
> > +                        '"inline":{},'.
>
> ah right. I noticed that too, but forgot in the meanwhile.... The inlineproperty should not exist.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/willdurand/Hateoas/pull/66/files#r6918742>
> .
>