html = $this->getSnippet('snippet-1'); } /** * @test */ public function pipe() { $html = $this->html; $qlHtml = QueryList::pipe(function(QueryList $ql) use($html){ $ql->setHtml($html); return $ql; })->getHtml(false); $this->assertEquals($html,$qlHtml); } }