public function testRemoveMany() { $collection = new Collection(['a', 'b', 'c', 10, 'b', '10']); $other = $collection->copy(); $check = $collection->removeMany(['b', '10']); $this->assertSame($collection, $check, 'Expecting `removeMany` to be chainable.'); $this->assertSame(['a', 'c'], $collection->toArray()); /** Strict */ $this->assertSame(['a', 'c', 10], $other->removeMany(['b', '10'], true)->toArray()); return $collection; }