public function contains($name)
{
return isset($this->indexed[$name]);
}
public function testRemove() { $collection = new AssetCollection(['libs.js', 'all.css'], $this->factory); $this->assertNull($collection->remove('libs.js')); $this->assertFalse($collection->contains('libs.js')); $this->assertNull($collection->get('libs.js')); foreach ($collection as $item) { $this->assertNotEquals('libs.js', $item->name()); } }