public function testComplexObject() { $obj = $this ->getObject(); $expected = $this ->getJsonSource(); $this ->assertEquals($expected, $this->encoder ->encode($obj, 'json')); }