/** * */ public function testIteratingAttributes() { $this->bag->add('foo', 'bar'); $this->bag->add('zee', 'bee'); foreach ($this->bag as $key => $value) { $this->assertEquals($value, $this->bag->get($key)); } }
/** * Get attribute's validators from attributes bag. * * @param string $key attribute key * * @return mixed|null */ public function get($key) { return $this->attributes->get($key); }