123456789101112131415161718192021222324252627282930313233343536 |
- <?php
- /**
- * Created by PhpStorm.
- * User: x
- * Date: 2018/12/10
- * Time: 1:14 AM
- */
- namespace Tests\Feature;
- use QL\QueryList;
- use Tests\TestCaseBase;
- class MethodTest extends TestCaseBase
- {
- protected $html;
- protected function setUp(): void
- {
- $this->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);
- }
- }
|