We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3181c7 commit 7febf22Copy full SHA for 7febf22
src/Exception/SqlException.php
@@ -0,0 +1,9 @@
1
+<?php
2
+
3
+declare(strict_types=1);
4
5
+namespace Mobicms\Testutils\Exception;
6
7
+final class SqlException extends \RuntimeException
8
+{
9
+}
src/SqlDumpLoader.php
@@ -5,6 +5,7 @@
namespace Mobicms\Testutils;
use Mobicms\Testutils\Exception\MissingFileException;
+use Mobicms\Testutils\Exception\SqlException;
use PDO;
10
use PDOException;
11
@@ -62,7 +63,7 @@ private function splitSql(string $sql): array
62
63
64
if ($split === false) {
65
// @codeCoverageIgnoreStart
- throw new \RuntimeException('Unable to split SQL');
66
+ throw new SqlException('Unable to split SQL');
67
// @codeCoverageIgnoreEnd
68
}
69
0 commit comments