/**
  * @expectedException \InvalidArgumentException
  * @expectedExceptionMessage Value is not an instance of AttributeSet
  */
 public function testAddInvalidAttributeSetShouldThrowInvalidArgumentException()
 {
     $collection = new AttributeSetCollection();
     $collection->add(1);
 }
示例#2
0
 /**
  * @return array
  */
 public function toArray()
 {
     return $this->attributeSets->toArray();
 }