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 testMultipleAttributeReturnsList()
 {
     $attr = new Attribute('foo', Attr::REQUIRED, Attr::MULTIPLE);
     $attr->addValue('fizz');
     $this->assertSame(['fizz'], $attr->getValue());
     $attr->addValue('buzz');
     $this->assertSame(['fizz', 'buzz'], $attr->getValue());
 }