public function testMatchedAttributeWithValueObject()
 {
     $attr = new MatchedAttribute('foo', Attr::REQUIRED, '/x/');
     $value = new AttributeValue('xyz');
     $attr->setValue($value);
     $this->assertSame('xyz', $attr->getValue());
 }
 public function testAttributeAcceptsMatchingValue()
 {
     $attr = new MatchedAttribute('foo', Attr::REQUIRED, '/\\bFizzBuzz\\b/');
     $attr->setValue('Hold onto the FizzBuzz!');
     $this->assertSame('Hold onto the FizzBuzz!', $attr->getValue());
 }