PHP Class ParagonIE\EasyDB\Tests\EasyDBTest

Inheritance: extends PHPUnit_Framework_TestCas\PHPUnit_Framework_TestCase
Datei anzeigen Open project: paragonie/easydb

Public Methods

Method Description
BadFactoryCreateArgumentProvider ( ) : array Data provider for arguments to be passed to Factory::create These arguments will not result in a valid EasyDB instance
GoodFactoryCreateArgument2EasyDBProvider ( ) : array EasyDB data provider Returns an array of callables that return instances of EasyDB
GoodFactoryCreateArgument2EasyDBQuoteProvider ( ) Remaps EasyDBWriteTest::GoodFactoryCreateArgument2EasyDBProvider()
GoodFactoryCreateArgumentProvider ( ) : array Data provider for arguments to be passed to Factory::create These arguments will result in a valid EasyDB instance

Protected Methods

Method Description
EasyDBExpectedFromCallable ( callable $cb ) : EasyDB Strict-type paranoia for a callable that is expected to return an EasyDB instance

Method Details

BadFactoryCreateArgumentProvider() public method

Data provider for arguments to be passed to Factory::create These arguments will not result in a valid EasyDB instance

EasyDBExpectedFromCallable() protected method

Strict-type paranoia for a callable that is expected to return an EasyDB instance
protected EasyDBExpectedFromCallable ( callable $cb ) : EasyDB
$cb callable
return ParagonIE\EasyDB\EasyDB

GoodFactoryCreateArgument2EasyDBProvider() public method

EasyDB data provider Returns an array of callables that return instances of EasyDB
See also: EasyDBTest::GoodFactoryCreateArgumentProvider()

GoodFactoryCreateArgument2EasyDBQuoteProvider() public method

Remaps EasyDBWriteTest::GoodFactoryCreateArgument2EasyDBProvider()

GoodFactoryCreateArgumentProvider() public method

Data provider for arguments to be passed to Factory::create These arguments will result in a valid EasyDB instance