PHP Class PHPUnit_Extensions_Database_Constraint_TableIsEqual, qcodo

Author: Mike Lively ([email protected])
Inheritance: extends PHPUnit_Framework_Constraint
Show file Open project: qcodo/qcodo

Protected Properties

Property Type Description
$failure_reason string
$value PHPUnit_Extensions_Database_DataSet_ITable

Public Methods

Method Description
__construct ( PHPUnit_Extensions_Database_DataSet_ITable $value ) Creates a new constraint.
evaluate ( PHPUnit_Extensions_Database_DataSet_ITable $other ) : boolean Determines whether or not the given table matches the table used to create this constraint.
toString ( ) : string Returns a string representation of the constraint.

Protected Methods

Method Description
customFailureDescription ( $other, $description, $not )

Method Details

__construct() public method

Creates a new constraint.
public __construct ( PHPUnit_Extensions_Database_DataSet_ITable $value )
$value PHPUnit_Extensions_Database_DataSet_ITable

customFailureDescription() protected method

protected customFailureDescription ( $other, $description, $not )

evaluate() public method

Determines whether or not the given table matches the table used to create this constraint.
public evaluate ( PHPUnit_Extensions_Database_DataSet_ITable $other ) : boolean
$other PHPUnit_Extensions_Database_DataSet_ITable
return boolean

toString() public method

Returns a string representation of the constraint.
public toString ( ) : string
return string

Property Details

$failure_reason protected property

protected string $failure_reason
return string

$value protected property

protected PHPUnit_Extensions_Database_DataSet_ITable $value
return PHPUnit_Extensions_Database_DataSet_ITable