flux-querybuilder/tests/Function/LimitFunctionTest.php

18 lines
350 B
PHP
Raw Normal View History

<?php
declare(strict_types=1);
use Arendsen\FluxQueryBuilder\Function\Limit;
use PHPUnit\Framework\TestCase;
final class LimitFunctionTest extends TestCase {
public function testSimpleLimit()
{
$expression = new Limit(1);
$query = '|> limit(n:1) ';
$this->assertEquals($query, $expression->__toString());
}
}