MySQLTestCase
extends ContrexxTestCase
in package
AbstractYes
MySQLTestCase
Tags
Table of Contents
Properties
Methods
- __construct() : mixed
- setUp() : void
- Start a new transaction before each test to keep the database clean
- setUpBeforeClass() : void
- Save as a reference to the database object
- tearDown() : void
- Discard changes of last test
- getComponent() : SystemComponentController|null
- Returns the requested component's controller
Properties
$cx
protected
static Cx
$cx
$database
Reference to the AdoDb database connection
protected
static ADONewConnection
$database
Methods
__construct()
public
__construct() : mixed
setUp()
Start a new transaction before each test to keep the database clean
public
setUp() : void
setUpBeforeClass()
Save as a reference to the database object
public
static setUpBeforeClass() : void
tearDown()
Discard changes of last test
public
tearDown() : void
getComponent()
Returns the requested component's controller
protected
getComponent(string $componentName) : SystemComponentController|null
Parameters
- $componentName : string
-
Name of the component to fetch
Return values
SystemComponentController|null —ComponentController or null if none was found