collection = new ItemCollection([]); } public function testJsonSerialize() { $this->assertEquals([], $this->collection->jsonSerialize()); $json = json_encode($this->collection); $result = json_decode($json); $this->assertEquals([], $result); } }