deepClone(); $attr->ref = 1; self::assertNotEquals($attr->ref, $clone->ref); } public function testToArray() : void { $attr = new Attribute(); $array = $attr->toArray(); unset($array['type']); unset($array['value']); self::assertEquals( [ 'id' => 0, 'ref' => 0, ], $array ); } public function testJsonSerialize() : void { $attr = new Attribute(); $array = $attr->jsonSerialize(); unset($array['type']); unset($array['value']); self::assertEquals( [ 'id' => 0, 'ref' => 0, ], $array ); } }