public function testClearDoesNothing() { $A = new ImmutableSet([1, 2, 3, 4]); $B = $A->copy(); $A->clear(); $this->assertEquals($B, $A); $this->assertEquals($B->asArray(), $A->asArray()); }