GitBucket
4.21.2
Toggle navigation
Snippets
Sign in
Files
Branches
1
Releases
Issues
Pull requests
Labels
Priorities
Milestones
Wiki
Forks
nigel.stanger
/
sqlmarker
Browse code
Replaced overflow tests with underflow test.
master
1 parent
153e706
commit
9e2b27c7785d8395ec76d4693ef78f008c86ef89
Nigel Stanger
authored
on 30 Aug 2013
Patch
Showing
1 changed file
STINK_student_records/Test_classes/Staff/STINK_student_records_Test_Staff_data.php
Ignore Space
Show notes
View
STINK_student_records/Test_classes/Staff/STINK_student_records_Test_Staff_data.php
<?php require_once "Staff/STINK_student_records_Test_Staff.php"; /** * @backupGlobals disabled * @backupStaticAttributes disabled */ class STINK_student_records_Test_Staff_data extends STINK_student_records_Test_Staff { /** * 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 . '/Staff/STINK_student_records_Fixture_Staff.xml' ); } /** * @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 ); } /** * @dataProvider provideColumnUnderflowValues * @expectedException PDOException * @expectedExceptionMessage check constraint * @expectedExceptionCode HY000 */ public function testColumnUnderflowValue( $columnName, $underflowValue ) { $this->assertColumnUnderflowValue( $columnName, $underflowValue ); } } ?>
<?php require_once "Staff/STINK_student_records_Test_Staff.php"; /** * @backupGlobals disabled * @backupStaticAttributes disabled */ class STINK_student_records_Test_Staff_data extends STINK_student_records_Test_Staff { /** * 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 . '/Staff/STINK_student_records_Fixture_Staff.xml' ); } /** * @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 ); } /** * @dataProvider provideColumnOverflowValues * @expectedException PDOException * @expectedExceptionMessage check constraint * @expectedExceptionCode HY000 */ public function testColumnOverflowValueExplicit( $columnName, $overflowValue ) { $this->assertColumnOverflowValueExplicit( $columnName, $overflowValue ); } /** * @dataProvider provideColumnOverflowValues * @expectedException PDOException * @expectedExceptionMessage length exceeded * @expectedExceptionCode HY000 */ public function testColumnOverflowValueImplicit( $columnName, $overflowValue ) { $this->assertColumnOverflowValueImplicit( $columnName, $overflowValue ); } } ?>
Show line notes below