PHP Class BaseCase, prado

Inheritance: extends Illuminate\Foundation\Testing\TestCase
Show file Open project: pradosoft/prado Class Usage Examples

Protected Properties

Property Type Description
$ScriptDirectory
$connection
$sqlmap

Public Methods

Method Description
AssertOrder1AsHashArray ( $order )
__construct ( )
__destruct ( )
assertAccount1AsHashArray ( $account )
getConnection ( )
hasSupportFor ( $feature )
testCase1 ( )
testCase2 ( )

Protected Methods

Method Description
NewAccount6 ( ) Create a new account with id = 6
assertAccount1 ( Account $account ) Verify that the input account is equal to the account(id=1).
assertAccount6 ( Account $account ) Verify that the input account is equal to the account(id=6).
assertOrder1 ( Order $order ) Verify that the input order is equal to the order(id=1).
initScript ( $script ) Run a sql batch for the datasource.
initSqlMap ( ) Initialize an sqlMap

Method Details

AssertOrder1AsHashArray() public method

public AssertOrder1AsHashArray ( $order )

NewAccount6() protected method

Create a new account with id = 6
protected NewAccount6 ( )

__construct() public method

public __construct ( )

__destruct() public method

public __destruct ( )

assertAccount1() protected method

Verify that the input account is equal to the account(id=1).
protected assertAccount1 ( Account $account )
$account Account

assertAccount1AsHashArray() public method

public assertAccount1AsHashArray ( $account )

assertAccount6() protected method

Verify that the input account is equal to the account(id=6).
protected assertAccount6 ( Account $account )
$account Account

assertOrder1() protected method

Verify that the input order is equal to the order(id=1).
protected assertOrder1 ( Order $order )
$order Order

getConnection() public method

public getConnection ( )

hasSupportFor() public method

public hasSupportFor ( $feature )

initScript() protected method

Run a sql batch for the datasource.
protected initScript ( $script )

initSqlMap() protected method

Initialize an sqlMap
protected initSqlMap ( )

testCase1() public method

public testCase1 ( )

testCase2() public method

public testCase2 ( )

Property Details

$ScriptDirectory protected property

protected $ScriptDirectory

$connection protected property

protected $connection

$sqlmap protected property

protected $sqlmap