SchemaTest
extends TestCase
in package
uses
FixturePath, PDO, AssertTableExists
Table of Contents
Properties
- $array : array<string|int, mixed>|null
- $pdo : PDO|null
- $schema : Query|null
- $schemaObj : SchemaObject|null
- $table : Table|null
Methods
- assertTableDoesNotExist() : void
- assertTableExists() : void
- createPDO() : PDO
- destroyPDO() : void
- getPDO() : PDO
- testCreateIn() : void
- testCreateInWithoutSChema() : void
- testGetSchema() : void
- testWithSchema() : void
- setUp() : void
- getArray() : array<string|int, mixed>
- getSchema() : Query
- getSchemaObject() : SchemaObject
- getTable() : Table
Properties
$array
private
array<string|int, mixed>|null
$array
= null
$pdo
private
static PDO|null
$pdo
= null
$schema
private
Query|null
$schema
= null
$schemaObj
private
SchemaObject|null
$schemaObj
= null
$table
private
Table|null
$table
= null
Methods
assertTableDoesNotExist()
public
static assertTableDoesNotExist(Table $needle, PDO $haystack) : void
Parameters
- $needle : Table
- $haystack : PDO
assertTableExists()
public
static assertTableExists(Table $needle, PDO $haystack) : void
Parameters
- $needle : Table
- $haystack : PDO
createPDO()
public
static createPDO() : PDO
Return values
PDOdestroyPDO()
public
static destroyPDO() : void
getPDO()
public
static getPDO() : PDO
Return values
PDOtestCreateIn()
public
testCreateIn() : void
testCreateInWithoutSChema()
public
testCreateInWithoutSChema() : void
testGetSchema()
public
testGetSchema() : void
testWithSchema()
public
testWithSchema() : void
setUp()
protected
setUp() : void
getArray()
private
getArray() : array<string|int, mixed>
Return values
array<string|int, mixed>getSchema()
private
getSchema() : Query
Return values
QuerygetSchemaObject()
private
getSchemaObject() : SchemaObject
Return values
SchemaObjectgetTable()
private
getTable() : Table