<?php
require_once "Person/STINK_student_records_Test_Person.php";
/**
* @backupGlobals disabled
* @backupStaticAttributes disabled
*/
class STINK_student_records_Test_Person_data extends STINK_student_records_Test_Person
{
/**
* Return fixture data set for current database connection.
*
* @access protected
* @return PHPUnit_Extensions_Database_DataSet_IDataSet
* @todo Parameterise the fixture filename.
*/
protected function getDataSet()
{
return $this->createXMLDataSet( TEST_CLASS_PATH . '/Person/STINK_student_records_Fixture_Person.xml' );
}
protected function willLoadFixture()
{
return true;
}
/**
* @dataProvider provideColumnLegalValues
*/
public function testColumnLegalValue( $columnName, $legalValue )
{
$this->assertColumnLegalValue( $columnName, $legalValue );
}
/**
* @dataProvider provideColumnIllegalValues
* @expectedException PDOException
* @expectedExceptionMessage check constraint
* @expectedExceptionCode HY000
*/
public function testColumnIllegalValueExplicit( $columnName, $illegalValue )
{
$this->assertColumnIllegalValueExplicit( $columnName, $illegalValue );
}
/**
* @dataProvider provideColumnIllegalValues
* @expectedException PDOException
* @expectedExceptionMessage length exceeded
* @expectedExceptionCode HY000
*/
public function testColumnIllegalValueImplicit( $columnName, $illegalValue )
{
$this->assertColumnIllegalValueImplicit( $columnName, $illegalValue );
}
}
?>