Dblayeroo and Dblayer : {ENGINE} -> ENGINE to be PHP lintable in all the cases
This commit is contained in:
@@ -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"],
|
||||
|
||||
Reference in New Issue
Block a user