File tree Expand file tree Collapse file tree 3 files changed +3
-23
lines changed
Expand file tree Collapse file tree 3 files changed +3
-23
lines changed Original file line number Diff line number Diff line change 633633 <code ><![CDATA[ AdapterInterface&Adapter]]> </code >
634634 </MoreSpecificReturnType >
635635 </file >
636- <file src =" test/integration/Driver/Mysqli/ConnectionTest.php" >
637- <UnnecessaryVarAnnotation >
638- <code ><![CDATA[ array]]> </code >
639- </UnnecessaryVarAnnotation >
640- </file >
641636 <file src =" test/integration/Driver/Pdo/AbstractAdapterTestCase.php" >
642637 <RedundantCondition >
643638 <code ><![CDATA[ (string) $connectionConfig['port']]]> </code >
Original file line number Diff line number Diff line change @@ -22,16 +22,9 @@ final class ConnectionTest extends TestCase
2222 public function testConnectionOk (): void
2323 {
2424 /** @var array $config */
25- $ config = $ this ->getConfig ();
26-
27- /** @var array $dbConfig */
28- $ dbConfig = $ config ['db ' ] ?? [];
29-
30- /** @var array $connectionConfig */
31- $ connectionConfig = $ dbConfig ['connection ' ] ?? [];
32-
33- $ connection = new Connection ($ connectionConfig );
34- $ connection ->connect ();
25+ $ config = ['db ' => ['driver ' => 'Mysqli ' ]];
26+ /** @var Connection $connection */
27+ $ connection = $ this ->getAdapter ($ config )->getDriver ()->getConnection ();
3528
3629 self ::assertTrue ($ connection ->isConnected ());
3730 $ connection ->disconnect ();
Original file line number Diff line number Diff line change @@ -32,14 +32,6 @@ final class ConnectionTest extends TestCase
3232{
3333 use SetupTrait;
3434
35- public function testSetResource (): void
36- {
37- $ resource = new PDO ('sqlite::memory: ' );
38- /** @var Connection $connection */
39- $ connection = $ this ->getAdapter ()->getDriver ()->getConnection ();
40- self ::assertSame ($ connection , $ connection ->setResource ($ resource ));
41- }
42-
4335 public function testGetResource (): void
4436 {
4537 $ connection = $ this ->getAdapter ()->getDriver ()->getConnection ();
You can’t perform that action at this time.
0 commit comments