Skip to content

Commit 488ec8c

Browse files
committed
Updating test and baseline
Signed-off-by: Joey Smith <jsmith@webinertia.net> Signed-off-by: Joey Smith <jsmith@webinertia.net>
1 parent 5708fe1 commit 488ec8c

File tree

3 files changed

+3
-23
lines changed

3 files changed

+3
-23
lines changed

psalm-baseline.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -633,11 +633,6 @@
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>

test/integration/Driver/Mysqli/ConnectionTest.php

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff 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();

test/integration/Driver/Pdo/ConnectionTest.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff 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();

0 commit comments

Comments
 (0)