public function testStats() { $this->assertNull($this->item->getStats()); $stats = (new Stats())->withStrength(new Integer(150))->withEndurance(new Integer(120)); $this->item = $this->item->withStats($stats); $this->assertEquals($stats, $this->item->getStats()); }