Ejemplo n.º 1
0
 /**
  *
  */
 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));
     }
 }
Ejemplo n.º 2
0
 /**
  * Get attribute's validators from attributes bag.
  *
  * @param string $key attribute key
  *
  * @return mixed|null
  */
 public function get($key)
 {
     return $this->attributes->get($key);
 }