Browse Source

Wrap long lines.

Refs #8171
Mark Story 10 years ago
parent
commit
e2461397b9
1 changed files with 23 additions and 4 deletions
  1. 23 4
      src/TestSuite/Fixture/FixtureManager.php

+ 23 - 4
src/TestSuite/Fixture/FixtureManager.php

@@ -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);
         }
     }