public function testMultipleAttributeWithValueObject()
 {
     $attr = new Attribute('test', Attr::REQUIRED, Attr::MULTIPLE);
     $value = new AttributeValue('something');
     $value->setType('example')->setLink('http://www.example.com/something');
     $attr->addValue($value);
     $data = $attr->getValue();
     $this->assertInternalType('array', $data);
     $this->assertCount(1, $data);
     $this->assertInternalType('object', $data[0]);
 }
 public function testMultipleAttributeIgnoresArrayKeys()
 {
     $attr = new Attribute('foo', Attr::REQUIRED, Attr::MULTIPLE);
     $attr->setValue(['fizz' => 'buzz']);
     $this->assertSame(['buzz'], $attr->getValue());
 }