Skip to content
Permalink
Browse files

Wrap long lines.

Refs #8171
  • Loading branch information...
markstory committed Feb 4, 2016
1 parent 00e8236 commit e2461397b9463d46438b49878608620d24cafea7
Showing with 23 additions and 4 deletions.
  1. +23 −4 src/TestSuite/Fixture/FixtureManager.php
@@ -277,7 +277,12 @@ public function load($test)
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 @@ public function load($test)
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 @@ public function load($test)
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);
}
}

0 comments on commit e246139

Please sign in to comment.
You can’t perform that action at this time.