- <?php
- require_once "BDL_Test_Component.php";
-
- class BDL_Test_Component_data extends BDL_Test_Component
- {
- /**
- * 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("BDL_Fixture_Component.xml");
- }
-
-
- /**
- * @dataProvider provideColumnLegalValues
- */
- public function testColumnLegalValue( $columnName, $legalValue )
- {
- $this->assertColumnLegalValue( $columnName, $legalValue );
- }
-
-
- /**
- * @dataProvider provideColumnUnderflowValues
- * @expectedException PDOException
- * @expectedExceptionMessage check constraint
- * @expectedExceptionCode HY000
- */
- public function testColumnUnderflowValue( $columnName, $underflowValue )
- {
- $this->assertColumnUnderflowValue( $columnName, $underflowValue );
- }
-
-
- /**
- * @dataProvider provideColumnOverflowValues
- * @expectedException PDOException
- * @expectedExceptionMessage check constraint
- * @expectedExceptionCode HY000
- */
- public function testColumnOverflowValue( $columnName, $overflowValue )
- {
- $this->assertColumnOverflowValue( $columnName, $overflowValue );
- }
- }
- ?>