flux-querybuilder/tests/Functions/GroupFunctionTest.php
davidarendsen 79edee7400 Rename namespace Function keyword to Functions to prevent errors
Signed-off-by: davidarendsen <davidarendsen@hey.com>
2022-08-12 12:37:30 +00:00

18 lines
No EOL
402 B
PHP

<?php
declare(strict_types=1);
use Arendsen\FluxQueryBuilder\Functions\Group;
use PHPUnit\Framework\TestCase;
final class GroupFunctionTest extends TestCase {
public function testSimpleGroup()
{
$expression = new Group(['foo', 'bar'], 'by');
$query = '|> group(columns: ["foo", "bar"], mode: "by") ';
$this->assertEquals($query, $expression->__toString());
}
}