Skip to content

Commit

Permalink
Wrap long lines.
Browse files Browse the repository at this point in the history
Refs #8171
  • Loading branch information
markstory committed Feb 4, 2016
1 parent 00e8236 commit e246139
Showing 1 changed file with 23 additions and 4 deletions.
27 changes: 23 additions & 4 deletions src/TestSuite/Fixture/FixtureManager.php
Expand Up @@ -277,7 +277,12 @@ public function load($test)
try { try {
$fixture->dropConstraints($db); $fixture->dropConstraints($db);
} catch (PDOException $e) { } 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); throw new Exception($msg);
} }
} }
Expand All @@ -295,7 +300,12 @@ public function load($test)
try { try {
$fixture->createConstraints($db); $fixture->createConstraints($db);
} catch (PDOException $e) { } 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); throw new Exception($msg);
} }
} }
Expand All @@ -308,14 +318,23 @@ public function load($test)
try { try {
$fixture->insert($db); $fixture->insert($db);
} catch (PDOException $e) { } 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); throw new Exception($msg);
} }
} }
}; };
$this->_runOperation($fixtures, $insert); $this->_runOperation($fixtures, $insert);
} catch (PDOException $e) { } 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); throw new Exception($msg);
} }
} }
Expand Down

0 comments on commit e246139

Please sign in to comment.