urlGenerator = new UrlGenerator(new RouteCollection, Request::create('/foo', 'GET')); $this->htmlBuilder = new HtmlBuilder($this->urlGenerator); } /** * Destroy the test environment. */ public function tearDown() { m::close(); } public function testDl() { $list = [ 'foo' => 'bar', 'bing' => 'baz' ]; $attributes = ['class' => 'example']; $result = $this->htmlBuilder->dl($list, $attributes); $this->assertEquals('