Пример #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));
     }
 }
Пример #2
0
 /**
  * Get a list of all attributes names from the attribute bags.
  *
  * @return array
  */
 public function attributes()
 {
     return array_keys($this->attributes->all());
 }