/** * This tag, has type? * @return bool */ protected function needsType() { return $this->tagNeedsType->contains($this->getName()); }
public function testContainsElementInArrayCollection() { $collection = new ArrayCollection(array('first')); $this->assertTrue($collection->contains('first')); }