function its_exists_method_should_return_true_for_existing_types() { foreach (AttributeTypes::all() as $key => $value) { $this->exists($key)->shouldReturn(true); } }
/** * {@inheritDoc} */ public function setType($type) { if (!AttributeTypes::exists($type)) { throw new \InvalidArgumentException(); } $this->type = $type; return $this; }