File tree Expand file tree Collapse file tree 3 files changed +10
-9
lines changed
Expand file tree Collapse file tree 3 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 44
55namespace PhpDbTest \Adapter \Sqlite ;
66
7+ use Exception ;
78use Override ;
89use PhpDb \Adapter \Adapter ;
910use PhpDb \Adapter \Driver \DriverInterface ;
1819use PhpDb \ResultSet \ResultSetInterface ;
1920use PHPUnit \Framework \Attributes \CoversMethod ;
2021use PHPUnit \Framework \Attributes \TestDox ;
21- use PHPUnit \Framework \MockObject \Exception ;
2222use PHPUnit \Framework \MockObject \MockObject ;
2323use PHPUnit \Framework \TestCase ;
2424
@@ -48,7 +48,7 @@ final class AdapterTest extends TestCase
4848 protected Adapter $ adapter ;
4949
5050 /**
51- * @throws \ Exception
51+ * @throws Exception
5252 */
5353 #[Override]
5454 protected function setUp (): void
@@ -105,7 +105,7 @@ public function testGetCurrentSchema(): void
105105 }
106106
107107 /**
108- * @throws \ Exception
108+ * @throws Exception
109109 */
110110 #[TestDox('unit test: Test query() in prepare mode produces a statement object ' )]
111111 public function testQueryWhenPreparedProducesStatement (): void
@@ -115,7 +115,7 @@ public function testQueryWhenPreparedProducesStatement(): void
115115 }
116116
117117 /**
118- * @throws \ Exception
118+ * @throws Exception
119119 */
120120 #[TestDox('unit test: Test query() in prepare mode, with array of parameters, produces a result object ' )]
121121 public function testQueryWhenPreparedWithParameterArrayProducesResult (): void
Original file line number Diff line number Diff line change 66
77use Exception ;
88use Override ;
9- use PhpDb \Adapter \Exception \InvalidConnectionParametersException ;
109use PhpDb \Adapter \Sqlite \Driver \Pdo \Connection ;
1110use PHPUnit \Framework \Attributes \CoversMethod ;
1211use PHPUnit \Framework \Attributes \Group ;
1312use PHPUnit \Framework \TestCase ;
1413
15- use function realpath ;
16-
1714#[CoversMethod(Connection::class, 'getResource ' )]
1815#[CoversMethod(Connection::class, 'getDsn ' )]
1916final class ConnectionTest extends TestCase
Original file line number Diff line number Diff line change 1010use PhpDb \Adapter \Sqlite \Sql \Platform \Sqlite as SqlPlatformDecorator ;
1111use PHPUnit \Framework \Attributes \CoversClass ;
1212use PHPUnit \Framework \TestCase ;
13- use ReflectionClass ;
13+
14+ use function restore_error_handler ;
15+ use function set_error_handler ;
16+
17+ use const E_USER_NOTICE ;
1418
1519#[CoversClass(Sqlite::class)]
1620final class SqliteTest extends TestCase
@@ -19,7 +23,7 @@ final class SqliteTest extends TestCase
1923
2024 protected function setUp (): void
2125 {
22- $ pdoMock = $ this ->createMock (PDO ::class);
26+ $ pdoMock = $ this ->createMock (PDO ::class);
2327 $ this ->platform = new Sqlite ($ pdoMock );
2428 }
2529
You can’t perform that action at this time.
0 commit comments