public function testAttributes() { $tag = new Html(); $tag->setTag('input'); $tag->setAttributes(['value' => 123]); $tag->addClass('test'); $tag->addClass('other'); $this->assertEquals(['value' => 123, 'class' => 'test other'], $tag->getAttributes()); }