/**
  * @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();
 }