Fix coding style with phpcs PSR-12 standard
Signed-off-by: davidarendsen <davidarendsen@hey.com>
This commit is contained in:
parent
b77ffd7f38
commit
39ae737fa1
30 changed files with 264 additions and 205 deletions
|
|
@ -1,30 +0,0 @@
|
|||
<?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));
|
||||
}
|
||||
|
||||
public function testDateTimeToString()
|
||||
{
|
||||
$dateTime = new DateTime('2022-08-12 17:31:00');
|
||||
|
||||
$expected = 'time(v: 2022-08-12T17:31:00Z)';
|
||||
|
||||
$this->assertEquals($expected, Formatters::dateTimeToString($dateTime));
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
editor.link_modal.header
Reference in a new issue