public function testFixedAttributeWithValueObject()
 {
     $attr = new FixedAttribute('foo', Attr::REQUIRED, ['a', 'b', 'c']);
     $value = new AttributeValue('a');
     $attr->setValue($value);
     $this->assertSame('a', $attr->getValue());
 }
 /**
  * @expectedException \Dormilich\WebService\RIPE\Exceptions\InvalidValueException
  * @expectedExceptionMessageRegExp # \[bar\] #
  */
 public function testAttributeDoesNotAcceptUndefinedValue()
 {
     $attr = new FixedAttribute('bar', Attr::REQUIRED, ['a', 'b', 'c']);
     $attr->setValue('x');
 }