Example #1
0
 public function testAttributeMergePolicies()
 {
     $tag = new Tag();
     $tag->disableAutoDump();
     $tag->addAttribute('test', 'value');
     $tag->addAttribute('test', 'value2', MergePolicy::COMBINE);
     $this->assertEquals(['value', 'value2'], $tag->getAttribute('test')->toArray());
     $tag->addAttribute('test2', 'value3', MergePolicy::COMBINE);
     $this->assertEquals('value3', $tag->getAttribute('test2'));
 }