diff --git a/Unit_testing/test.php b/Unit_testing/test.php index 7ae84f4..07a6b1c 100644 --- a/Unit_testing/test.php +++ b/Unit_testing/test.php @@ -52,6 +52,8 @@ require_once "${table}/${structureTest}.php"; require_once "${table}/${dataTest}.php"; + $structurePassed = false; + $listener->reset(); $reporter->hr(); @@ -124,10 +126,12 @@ if ( RUN_MODE !== 'student' ) { + // Critical to data testing. if ( $suite->testExists( "${structureTest}::testColumnNullability" ) ) { $testResult = $suite->run( $result, '/testColumnNullability/' ); - if ( $listener->wasSuccessful( "${structureTest}::testColumnNullability" ) ) + $structurePassed = $listener->wasSuccessful( "${structureTest}::testColumnNullability" ); + if ( $structurePassed ) { $reporter->report( Reporter::STATUS_PASS, 'All columns of table %s have the expected nullability.', array( $table ) ); }