public function testCanCreateWithHeader() { $modal = Modal::withHeader("Foo Bar", "bar", $this->getAttributes()); $matcher = $this->getMatcher(); $matcher['child']['descendant'] = array( 'tag' => "h3", 'attributes' => array(), 'content' => 'Foo Bar' ); $this->assertHTML($matcher, $modal); }