Skip to content

Commit 00b2c3f

Browse files
committed
refactor: use Nowdoc
1 parent a75cd25 commit 00b2c3f

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

tests/system/Database/Builder/DeleteTest.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,10 @@ public function testGetCompiledDelete()
4242
$builder->where('id', 1);
4343
$sql = $builder->getCompiledDelete();
4444

45-
$expectedSQL = 'DELETE FROM "jobs"'
46-
. "\n" . 'WHERE "id" = 1';
45+
$expectedSQL = <<<'EOL'
46+
DELETE FROM "jobs"
47+
WHERE "id" = 1
48+
EOL;
4749
$this->assertEquals($expectedSQL, $sql);
4850
}
4951

@@ -53,8 +55,10 @@ public function testGetCompiledDeleteWithLimit()
5355

5456
$sql = $builder->where('id', 1)->limit(10)->getCompiledDelete();
5557

56-
$expectedSQL = 'DELETE FROM "jobs"'
57-
. "\n" . 'WHERE "id" = 1 LIMIT 10';
58+
$expectedSQL = <<<'EOL'
59+
DELETE FROM "jobs"
60+
WHERE "id" = 1 LIMIT 10
61+
EOL;
5862
$this->assertEquals($expectedSQL, $sql);
5963
}
6064
}

0 commit comments

Comments
 (0)