PHP Class NinjaMutex\Tests\Mock\MockPDO

Author: Kamil Dziedzic ([email protected])
Inheritance: extends PD\PDO
Show file Open project: arvenil/ninja-mutex

Protected Properties

Property Type Description
$_mock_pdo_statement MockPDOStatement
$current string[]
$data string[]

Public Methods

Method Description
__construct ( $dsn, $user, $password )
__destruct ( )
query ( string $statement ) : MockPDOStatement

Protected Methods

Method Description
_mock_get_lock ( string $key, integer $timeout ) : MockPDOStatement
_mock_is_free_lock ( string $key ) : MockPDOStatement
_mock_release_lock ( string $key ) : MockPDOStatement

Method Details

__construct() public method

public __construct ( $dsn, $user, $password )

__destruct() public method

public __destruct ( )

_mock_get_lock() protected method

protected _mock_get_lock ( string $key, integer $timeout ) : MockPDOStatement
$key string
$timeout integer
return MockPDOStatement

_mock_is_free_lock() protected method

protected _mock_is_free_lock ( string $key ) : MockPDOStatement
$key string
return MockPDOStatement

_mock_release_lock() protected method

protected _mock_release_lock ( string $key ) : MockPDOStatement
$key string
return MockPDOStatement

query() public method

public query ( string $statement ) : MockPDOStatement
$statement string
return MockPDOStatement

Property Details

$_mock_pdo_statement protected property

protected MockPDOStatement,NinjaMutex\Tests\Mock $_mock_pdo_statement
return MockPDOStatement

$current protected property

protected string[] $current
return string[]

$data protected static property

protected static string[] $data
return string[]