public function testClearResetsDefaultTarget() { $this->collection->add($this->target1); $this->collection->add($this->target2); $this->collection->clear(); $this->collection->add($this->target2); $this->assertSame($this->target2, $this->collection->getDefaultTarget()); }