public function testSetDataAttrib() { $tag = new Tag(['tag' => 'div']); $tag->data('foo', 'bar'); $this->assertEquals('bar', $tag->getAttrib('data-foo')); }
public function testSetDataAttrib() { $tag = new Tag(['tag' => 'div']); $tag->data('foo', 'bar'); $this->assertEquals('bar', $tag->getAttrib('data-foo')); }