/** * @expectedException \InvalidArgumentException * @expectedExceptionMessage $roles must be an instance of Doctrine\Common\Collections\Collection or an array */ public function testSetRolesThrowsInvalidArgumentException() { $this->group->setRoles('roles'); }
/** * {@inheritDoc} */ public function setRoles($roles) { $this->__initializer__ && $this->__initializer__->__invoke($this, 'setRoles', array($roles)); return parent::setRoles($roles); }