Lines Matching refs:obj
185 $obj = new ObjectWithNullProperty('foo', 'bar');
189 …$this->serializer->serialize($obj, $this->getFormat(), SerializationContext::create()->setSerializ…
199 $obj = new ObjectWithNullProperty('foo', 'bar');
208 self::assertEquals($obj, $dObj);
436 $obj = new SimpleInternalObject('foo', 'bar');
438 $this->assertEquals($this->getContent('simple_object'), $this->serialize($obj));
441 …$this->assertEquals($obj, $this->deserialize($this->getContent('simple_object'), get_class($obj)));
447 …self::assertEquals($this->getContent('simple_object'), $this->serialize($obj = new SimpleObject('f…
450 … self::assertEquals($obj, $this->deserialize($this->getContent('simple_object'), get_class($obj)));
456 …$this->assertEquals($this->getContent('simple_object'), $this->serialize($obj = new SimpleObjectWi…
459 …$this->assertEquals($obj, $this->deserialize($this->getContent('simple_object'), get_class($obj)));
1663 protected function getField($obj, $name) argument
1665 $ref = new \ReflectionProperty($obj, $name);
1668 return $ref->getValue($obj);
1671 private function setField($obj, $name, $value) argument
1673 $ref = new \ReflectionProperty($obj, $name);
1675 $ref->setValue($obj, $value);