public function testMatchedAttributeWithValueObject()
 {
     $attr = new MatchedAttribute('foo', Attr::REQUIRED, '/x/');
     $value = new AttributeValue('xyz');
     $attr->setValue($value);
     $this->assertSame('xyz', $attr->getValue());
 }
 /**
  * @expectedException \Dormilich\WebService\RIPE\Exceptions\InvalidValueException
  * @expectedExceptionMessageRegExp # \[bar\] #
  */
 public function testAttributeDoesNotAcceptUndefinedValue()
 {
     $attr = new MatchedAttribute('bar', Attr::REQUIRED, '/\\bFizzBuzz\\b/');
     $attr->setValue('get the fizz buzz');
 }