PHP Class ParagonIE\EasyDB\Tests\SetAttributeTest

Inheritance: extends GetAttributeTest
Datei anzeigen Open project: paragonie/easydb

Public Methods

Method Description
GoodFactoryCreateArgument2EasyDBForSetPDOAttributeThrowsExceptionProvider ( ) : array EasyDB data provider Returns an array of callables that return instances of EasyDB
testAttribute ( callable $cb, $attr, string $attrName )
testSetAttributeThrowsException ( callable $cb, integer $attribute, $value, string $exceptionClassName, string $exceptionMessage ) Test which attributes will always throw an exception when set

Method Details

GoodFactoryCreateArgument2EasyDBForSetPDOAttributeThrowsExceptionProvider() public method

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

testAttribute() public method

public testAttribute ( callable $cb, $attr, string $attrName )
$cb callable
$attr
$attrName string

testSetAttributeThrowsException() public method

Test which attributes will always throw an exception when set
public testSetAttributeThrowsException ( callable $cb, integer $attribute, $value, string $exceptionClassName, string $exceptionMessage )
$cb callable
$attribute integer
$value
$exceptionClassName string
$exceptionMessage string