/** * */ public function testHasAttribute() { $this->bag->add('foo', 'bar'); $this->assertTrue($this->bag->has('foo')); }
/** * An alias for "has" method to provide more readable syntax. * * @param string $key attribute key * * @return bool */ public function hasRulesFor($key) { return $this->attributes->has($key); }