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\Dblayer;
class DblayerTest{ENGINE} extends \PHPUnit_Framework_TestCase
class DblayerTestENGINE 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/databaseDBLayer.db",
@@ -47,7 +47,7 @@ class DblayerTest{ENGINE} extends \PHPUnit_Framework_TestCase
*/
public function testDropTable()
{
$dbconfig = $this->confs["{ENGINE}"];
$dbconfig = $this->confs["ENGINE"];
$db = new Dblayer(
$dbconfig["dsn"],
$dbconfig["username"],
@@ -75,7 +75,7 @@ class DblayerTest{ENGINE} extends \PHPUnit_Framework_TestCase
public function testCreateTable1()
{
// Create a table named grouped
$dbconfig = $this->confs["{ENGINE}"];
$dbconfig = $this->confs["ENGINE"];
$db = new Dblayer(
$dbconfig["dsn"],
$dbconfig["username"],
@@ -99,7 +99,7 @@ class DblayerTest{ENGINE} extends \PHPUnit_Framework_TestCase
*/
public function testInsert1()
{
$dbconfig = $this->confs["{ENGINE}"];
$dbconfig = $this->confs["ENGINE"];
$db = new Dblayer(
$dbconfig["dsn"],
$dbconfig["username"],
@@ -123,7 +123,7 @@ class DblayerTest{ENGINE} extends \PHPUnit_Framework_TestCase
public function testRead1()
{
$dbconfig = $this->confs["{ENGINE}"];
$dbconfig = $this->confs["ENGINE"];
$db = new Dblayer(
$dbconfig["dsn"],
$dbconfig["username"],
@@ -148,7 +148,7 @@ class DblayerTest{ENGINE} extends \PHPUnit_Framework_TestCase
public function testUpdate1()
{
$dbconfig = $this->confs["{ENGINE}"];
$dbconfig = $this->confs["ENGINE"];
$db = new Dblayer(
$dbconfig["dsn"],
$dbconfig["username"],
@@ -170,7 +170,7 @@ class DblayerTest{ENGINE} extends \PHPUnit_Framework_TestCase
public function testRead2()
{
$dbconfig = $this->confs["{ENGINE}"];
$dbconfig = $this->confs["ENGINE"];
$db = new Dblayer(
$dbconfig["dsn"],
$dbconfig["username"],
@@ -195,7 +195,7 @@ class DblayerTest{ENGINE} extends \PHPUnit_Framework_TestCase
public function testUpdate2()
{
$dbconfig = $this->confs["{ENGINE}"];
$dbconfig = $this->confs["ENGINE"];
$db = new Dblayer(
$dbconfig["dsn"],
$dbconfig["username"],
@@ -218,7 +218,7 @@ class DblayerTest{ENGINE} extends \PHPUnit_Framework_TestCase
public function testRead3()
{
$dbconfig = $this->confs["{ENGINE}"];
$dbconfig = $this->confs["ENGINE"];
$db = new Dblayer(
$dbconfig["dsn"],
$dbconfig["username"],
@@ -243,7 +243,7 @@ class DblayerTest{ENGINE} extends \PHPUnit_Framework_TestCase
public function testUpdate3()
{
$dbconfig = $this->confs["{ENGINE}"];
$dbconfig = $this->confs["ENGINE"];
$db = new Dblayer(
$dbconfig["dsn"],
$dbconfig["username"],
@@ -277,7 +277,7 @@ class DblayerTest{ENGINE} extends \PHPUnit_Framework_TestCase
public function testCreateTable2()
{
// Create a table named group
$dbconfig = $this->confs["{ENGINE}"];
$dbconfig = $this->confs["ENGINE"];
$db = new Dblayer(
$dbconfig["dsn"],
$dbconfig["username"],
@@ -306,7 +306,7 @@ class DblayerTest{ENGINE} extends \PHPUnit_Framework_TestCase
public function testInsert2()
{
$dbconfig = $this->confs["{ENGINE}"];
$dbconfig = $this->confs["ENGINE"];
$db = new Dblayer(
$dbconfig["dsn"],
$dbconfig["username"],
@@ -335,7 +335,7 @@ class DblayerTest{ENGINE} extends \PHPUnit_Framework_TestCase
// Test the unique feature
public function testInsert3()
{
$dbconfig = $this->confs["{ENGINE}"];
$dbconfig = $this->confs["ENGINE"];
$db = new Dblayer(
$dbconfig["dsn"],
$dbconfig["username"],
@@ -362,7 +362,7 @@ class DblayerTest{ENGINE} extends \PHPUnit_Framework_TestCase
public function testInsert4()
{
$dbconfig = $this->confs["{ENGINE}"];
$dbconfig = $this->confs["ENGINE"];
$db = new Dblayer(
$dbconfig["dsn"],
$dbconfig["username"],
@@ -395,7 +395,7 @@ class DblayerTest{ENGINE} extends \PHPUnit_Framework_TestCase
{
// Create a table named group
$dbconfig = $this->confs["{ENGINE}"];
$dbconfig = $this->confs["ENGINE"];
$db = new Dblayer(
$dbconfig["dsn"],
$dbconfig["username"],
@@ -432,7 +432,7 @@ class DblayerTest{ENGINE} extends \PHPUnit_Framework_TestCase
public function testCreateTable3()
{
// Create a table named group
$dbconfig = $this->confs["{ENGINE}"];
$dbconfig = $this->confs["ENGINE"];
$db = new Dblayer(
$dbconfig["dsn"],
$dbconfig["username"],
@@ -454,7 +454,7 @@ class DblayerTest{ENGINE} extends \PHPUnit_Framework_TestCase
*/
public function testReadOR1()
{
$dbconfig = $this->confs["{ENGINE}"];
$dbconfig = $this->confs["ENGINE"];
$db = new Dblayer(
$dbconfig["dsn"],
$dbconfig["username"],