Rename namespace Function keyword to Functions to prevent errors

Signed-off-by: davidarendsen <davidarendsen@hey.com>
This commit is contained in:
davidarendsen 2022-08-12 12:37:30 +00:00
commit 79edee7400
19 changed files with 31 additions and 31 deletions

View file

@ -0,0 +1,18 @@
<?php
declare(strict_types=1);
use Arendsen\FluxQueryBuilder\Functions\Map;
use PHPUnit\Framework\TestCase;
final class MapFunctionTest extends TestCase {
public function testSimpleMap()
{
$expression = new Map('r with name: r.user');
$query = '|> map(fn: (r) => ({ r with name: r.user })) ';
$this->assertEquals($query, $expression->__toString());
}
}