public function testRemoveUsingStrict() { $collection = new Collection([10, '10']); $other = $collection->copy(); $collection->remove(10); $this->assertEmpty($collection->toArray()); $other->remove(10, true); $this->assertSame(['10'], $other->toArray()); }