PHP 클래스 bandwidthThrottle\tokenBucket\storage\PDOStorageTest

If you want to run vendor specific PDO tests you should provide these environment variables: - MYSQL_DSN, MYSQL_USER - PGSQL_DSN, PGSQL_USER
또한 보기: PDOStorage
저자: Markus Malkusch ([email protected])
상속: extends PHPUnit_Framework_TestCase
파일 보기 프로젝트 열기: bandwidth-throttle/token-bucket

공개 메소드들

메소드 설명
providePDO ( ) : PDO[][] Provides the PDO.
provideTestInvalidErrorMode ( ) : int[][] Provides test cases for testInvalidErrorMode()
testBootstrapAddsRow ( PDO $pdo ) Tests bootstrap() adds a row to an existing table.
testBootstrapFailsForExistingRow ( PDO $pdo ) Tests bootstrap() would add a row to an existing table, but fails.
testInvalidErrorMode ( integer $errorMode ) Tests instantiation with PDO in wrong error mode should fail.
testLongName ( ) Tests instantiation with a long name should not fail.
testRemoveOneRow ( PDO $pdo ) Tests remove() removes only one row.
testRemoveTable ( PDO $pdo ) Tests remove() removes the table after the last row.
testTooLongNameFails ( ) Tests instantiation with a too long name should fail.
testValidErrorMode ( ) Tests instantiation with PDO in valid error mode.

보호된 메소드들

메소드 설명
tearDown ( )

메소드 상세

providePDO() 공개 메소드

Provides the PDO.
public providePDO ( ) : PDO[][]
리턴 PDO[][] The PDOs.

provideTestInvalidErrorMode() 공개 메소드

Provides test cases for testInvalidErrorMode()
public provideTestInvalidErrorMode ( ) : int[][]
리턴 int[][] Invalid error modes.

tearDown() 보호된 메소드

protected tearDown ( )

testBootstrapAddsRow() 공개 메소드

Tests bootstrap() adds a row to an existing table.
public testBootstrapAddsRow ( PDO $pdo )
$pdo PDO The PDO.

testBootstrapFailsForExistingRow() 공개 메소드

Tests bootstrap() would add a row to an existing table, but fails.
public testBootstrapFailsForExistingRow ( PDO $pdo )
$pdo PDO The PDO.

testInvalidErrorMode() 공개 메소드

Tests instantiation with PDO in wrong error mode should fail.
public testInvalidErrorMode ( integer $errorMode )
$errorMode integer The invalid error mode.

testLongName() 공개 메소드

Tests instantiation with a long name should not fail.
public testLongName ( )

testRemoveOneRow() 공개 메소드

Tests remove() removes only one row.
public testRemoveOneRow ( PDO $pdo )
$pdo PDO The PDO.

testRemoveTable() 공개 메소드

Tests remove() removes the table after the last row.
public testRemoveTable ( PDO $pdo )
$pdo PDO The PDO.

testTooLongNameFails() 공개 메소드

Tests instantiation with a too long name should fail.

testValidErrorMode() 공개 메소드

Tests instantiation with PDO in valid error mode.
public testValidErrorMode ( )