flux-querybuilder/tests/FormattersTest.php

21 lines
455 B
PHP
Raw Normal View History

<?php
declare(strict_types=1);
use Arendsen\FluxQueryBuilder\Formatters;
use PHPUnit\Framework\TestCase;
final class FormattersTest extends TestCase {
public function testAssociativeArrayNested()
{
$array = [
'columns' => ['foo', 'bar'],
'mode' => 'by'
];
$expected = 'columns: ["foo", "bar"], mode: "by"';
$this->assertEquals($expected, Formatters::toFluxArrayString($array));
}
}