Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions test/integration/Pdo/AbstractAdapterTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@
use PhpDb\Adapter\AdapterInterface;
use PhpDb\Adapter\Driver\ConnectionInterface;
use PhpDb\Adapter\SchemaAwareInterface;
use PhpDb\Mysql\Pdo\Connection;
use PhpDb\Mysql\Pdo\Driver;
use PhpDbIntegrationTest\Mysql\Container\TestAsset\SetupTrait;
use PHPUnit\Framework\Attributes\CoversMethod;
use PHPUnit\Framework\TestCase;

#[CoversMethod(Adapter::class, 'getCurrentSchema')]
#[CoversMethod(AdapterInterface::class, '__construct')]
#[CoversMethod(SchemaAwareInterface::class, 'getCurrentSchema')]
#[CoversMethod(ConnectionInterface::class, 'connect')]
#[CoversMethod(ConnectionInterface::class, 'disconnect')]
#[CoversMethod(ConnectionInterface::class, 'isConnected')]
#[CoversMethod(Adapter::class, '__construct')]
#[CoversMethod(Connection::class, 'connect')]
#[CoversMethod(Connection::class, 'disconnect')]
#[CoversMethod(Connection::class, 'isConnected')]
abstract class AbstractAdapterTestCase extends TestCase
{
use SetupTrait;
Expand Down
7 changes: 3 additions & 4 deletions test/integration/Pdo/ConnectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,9 @@
#[Group('integration-pdo')]
#[CoversClass(Connection::class)]
#[CoversMethod(Connection::class, 'prepare')]
#[CoversClass(ConnectionInterface::class)]
#[CoversMethod(ConnectionInterface::class, 'execute')]
#[CoversMethod(ConnectionInterface::class, 'getResource')]
#[CoversMethod(ConnectionInterface::class, 'getLastGeneratedValue')]
#[CoversMethod(Connection::class, 'execute')]
#[CoversMethod(Connection::class, 'getResource')]
#[CoversMethod(Connection::class, 'getLastGeneratedValue')]
final class ConnectionTest extends TestCase
{
use SetupTrait;
Expand Down
4 changes: 2 additions & 2 deletions test/integration/Pdo/TableGatewayAndAdapterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace PhpDbIntegrationTest\Mysql\Pdo;

use Exception;
use PhpDb\Adapter\Driver\ConnectionInterface;
use PhpDb\Mysql\Pdo\Connection;
use PhpDb\ResultSet\AbstractResultSet;
use PhpDb\TableGateway\TableGateway;
use PhpDbIntegrationTest\Mysql\Container\TestAsset\SetupTrait;
Expand All @@ -21,7 +21,7 @@
* On tear down disconnected from the database and set the driver adapter on null
* Running many tests ended up in consuming all mysql connections and not releasing them
*/
#[CoversMethod(ConnectionInterface::class, 'disconnect')]
#[CoversMethod(Connection::class, 'disconnect')]
final class TableGatewayAndAdapterTest extends TestCase
{
use SetupTrait;
Expand Down
2 changes: 0 additions & 2 deletions test/unit/Pdo/ConnectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

use Exception;
use Override;
use PhpDb\Adapter\Driver\PdoConnectionInterface;
use PhpDb\Adapter\Exception\InvalidConnectionParametersException;
use PhpDb\Adapter\Exception\RuntimeException;
use PhpDb\Mysql\Pdo\Connection;
Expand All @@ -16,7 +15,6 @@

#[CoversMethod(Connection::class, 'getResource')]
#[CoversMethod(Connection::class, 'getDsn')]
#[CoversMethod(PdoConnectionInterface::class, 'getDsn')]
final class ConnectionTest extends TestCase
{
protected Connection $connection;
Expand Down
8 changes: 4 additions & 4 deletions test/unit/Pdo/ConnectionTransactionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
*/
#[CoversClass(Connection::class)]
#[CoversClass(AbstractConnection::class)]
#[CoversMethod(Connection::class, 'beginTransaction()')]
#[CoversMethod(Connection::class, 'inTransaction()')]
#[CoversMethod(Connection::class, 'commit()')]
#[CoversMethod(Connection::class, 'rollback()')]
#[CoversMethod(Connection::class, 'beginTransaction')]
#[CoversMethod(Connection::class, 'inTransaction')]
#[CoversMethod(Connection::class, 'commit')]
#[CoversMethod(Connection::class, 'rollback')]
final class ConnectionTransactionsTest extends TestCase
{
protected ConnectionWrapper $wrapper;
Expand Down
1 change: 0 additions & 1 deletion test/unit/Pdo/DriverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\TestCase;

#[CoversMethod(Driver::class, 'getDatabasePlatformName')]
#[CoversMethod(Driver::class, 'getResultPrototype')]
#[CoversMethod(Driver::class, 'createResult')]
final class DriverTest extends TestCase
Expand Down
Loading