Dblayeroo and Dblayer : {ENGINE} -> ENGINE to be PHP lintable in all the cases

This commit is contained in:
2023-04-14 21:15:49 +02:00
parent 2f4461f8d9
commit a2e103c32f
3 changed files with 31 additions and 31 deletions

View File

@@ -11,13 +11,13 @@ namespace Domframework\Tests;
use Domframework\Dblayeroo;
class DblayerooTest{ENGINE} extends \PHPUnit_Framework_TestCase
class DblayerooTestENGINE extends \PHPUnit_Framework_TestCase
{
// Test with column name 'group', 'object', 'where', 'with space'
// Test with table name 'group', 'object', 'where', 'with space'
// For the 3 DB engines
public $engine = "{ENGINE}";
public $engine = "ENGINE";
public $confs = [
"sqlite" => [
"dsn" => "sqlite:/tmp/databaseDBLayeroo.db",
@@ -44,7 +44,7 @@ class DblayerooTest{ENGINE} extends \PHPUnit_Framework_TestCase
private function tbl1()
{
$dbconfig = $this->confs["{ENGINE}"];
$dbconfig = $this->confs["ENGINE"];
$tbl1 = new Dblayeroo(
$dbconfig["dsn"],
$dbconfig["username"],
@@ -64,7 +64,7 @@ class DblayerooTest{ENGINE} extends \PHPUnit_Framework_TestCase
private function tbl2()
{
$dbconfig = $this->confs["{ENGINE}"];
$dbconfig = $this->confs["ENGINE"];
$tbl2 = new Dblayeroo(
$dbconfig["dsn"],
$dbconfig["username"],
@@ -86,7 +86,7 @@ class DblayerooTest{ENGINE} extends \PHPUnit_Framework_TestCase
private function tbl3()
{
$dbconfig = $this->confs["{ENGINE}"];
$dbconfig = $this->confs["ENGINE"];
$tbl3 = new Dblayeroo(
$dbconfig["dsn"],
$dbconfig["username"],
@@ -98,7 +98,7 @@ class DblayerooTest{ENGINE} extends \PHPUnit_Framework_TestCase
private function tbl4()
{
$dbconfig = $this->confs["{ENGINE}"];
$dbconfig = $this->confs["ENGINE"];
$tbl4 = new Dblayeroo(
$dbconfig["dsn"],
$dbconfig["username"],
@@ -119,7 +119,7 @@ class DblayerooTest{ENGINE} extends \PHPUnit_Framework_TestCase
public function testDropTable()
{
$dbconfig = $this->confs["{ENGINE}"];
$dbconfig = $this->confs["ENGINE"];
$db = new Dblayeroo(
$dbconfig["dsn"],
$dbconfig["username"],