diff --git a/Unit_testing/BDL_Test_Product.php b/Unit_testing/BDL_Test_Product.php index 6f1c856..5559d9f 100644 --- a/Unit_testing/BDL_Test_Product.php +++ b/Unit_testing/BDL_Test_Product.php @@ -1,7 +1,7 @@ createXMLDataSet("BDL_Fixture_Product.xml"); - } - - - public function testTableExists() - { - $this->assertTableExists(); - } - - - /** - * @dataProvider provideColumnNames - */ - public function testColumnExists( $columnName ) - { - $this->assertColumnExists( $columnName ); - } - - - /** - * @dataProvider provideColumnTypes - */ - public function testColumnDataType( $columnName, $columnTypeList ) - { - $this->assertColumnDataType( $columnName, $columnTypeList ); - } - - - /** - * @dataProvider provideColumnLengths - */ - public function testColumnLength( $columnName, $columnLengthList ) - { - $this->assertColumnLength( $columnName, $columnLengthList ); - } - - - /** - * @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 ); - } - - - /** - * @dataProvider provideColumnNullabilities - */ - public function testColumnNullability( $columnName, $columnNullability ) - { - $this->assertColumnNullability( $columnName, $columnNullability ); - } - - - public function testPKExists() - { - return $this->assertPKExists(); - } - - - /** - * @depends testPKExists - */ - public function testPKColumns( $constraintName ) - { - $this->assertPKColumns( $constraintName ); - } - - - /** - * @dataProvider provideConstraintNames - */ - public function testConstraintsNamed( $constraintName, $constraintType ) - { - $this->assertConstraintNamed( $constraintName, $constraintType ); - } } ?>