public function testCreate() { $element = Element::create('span', 'Foo', ['class' => 'bar']); $this->assertEquals('span', $element->tag); $this->assertEquals('Foo', $element->text()); $this->assertEquals(['class' => 'bar'], $element->attributes()); }