Beispiel #1
0
 /**
  * Returns TRUE if attribute is set
  *
  * @param string $key The name of the attribute
  * @return bool
  */
 public function hasAttribute($key)
 {
     return $this->attributes->hasAttribute($key);
 }
 /**
  * @test
  */
 public function hasAttributeReturnsFalseForMissingAttribute()
 {
     $this->assertFalse($this->subject->hasAttribute('anAttribute'));
 }