|
|
@@ -277,7 +277,12 @@ class FixtureManager
|
|
|
try {
|
|
|
$fixture->dropConstraints($db);
|
|
|
} catch (PDOException $e) {
|
|
|
- $msg = sprintf('Unable to drop constraints for fixture "%s" in "%s" test case: ' . "\n" . '%s', get_class($fixture), get_class($test), $e->getMessage());
|
|
|
+ $msg = sprintf(
|
|
|
+ 'Unable to drop constraints for fixture "%s" in "%s" test case: ' . "\n" . '%s',
|
|
|
+ get_class($fixture),
|
|
|
+ get_class($test),
|
|
|
+ $e->getMessage()
|
|
|
+ );
|
|
|
throw new Exception($msg);
|
|
|
}
|
|
|
}
|
|
|
@@ -295,7 +300,12 @@ class FixtureManager
|
|
|
try {
|
|
|
$fixture->createConstraints($db);
|
|
|
} catch (PDOException $e) {
|
|
|
- $msg = sprintf('Unable to create constraints for fixture "%s" in "%s" test case: ' . "\n" . '%s', get_class($fixture), get_class($test), $e->getMessage());
|
|
|
+ $msg = sprintf(
|
|
|
+ 'Unable to create constraints for fixture "%s" in "%s" test case: ' . "\n" . '%s',
|
|
|
+ get_class($fixture),
|
|
|
+ get_class($test),
|
|
|
+ $e->getMessage()
|
|
|
+ );
|
|
|
throw new Exception($msg);
|
|
|
}
|
|
|
}
|
|
|
@@ -308,14 +318,23 @@ class FixtureManager
|
|
|
try {
|
|
|
$fixture->insert($db);
|
|
|
} catch (PDOException $e) {
|
|
|
- $msg = sprintf('Unable to insert fixture "%s" in "%s" test case: ' . "\n" . '%s', get_class($fixture), get_class($test), $e->getMessage());
|
|
|
+ $msg = sprintf(
|
|
|
+ 'Unable to insert fixture "%s" in "%s" test case: ' . "\n" . '%s',
|
|
|
+ get_class($fixture),
|
|
|
+ get_class($test),
|
|
|
+ $e->getMessage()
|
|
|
+ );
|
|
|
throw new Exception($msg);
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
$this->_runOperation($fixtures, $insert);
|
|
|
} catch (PDOException $e) {
|
|
|
- $msg = sprintf('Unable to insert fixtures for "%s" test case. %s', get_class($test), $e->getMessage());
|
|
|
+ $msg = sprintf(
|
|
|
+ 'Unable to insert fixtures for "%s" test case. %s',
|
|
|
+ get_class($test),
|
|
|
+ $e->getMessage()
|
|
|
+ );
|
|
|
throw new Exception($msg);
|
|
|
}
|
|
|
}
|