PHPackages                             cspray/database-testing-pdo - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. cspray/database-testing-pdo

ActiveLibrary[Database &amp; ORM](/categories/database)

cspray/database-testing-pdo
===========================

PDO ConnectionAdapter for cspray/database-testing

0.1.0(1y ago)081PHPPHP ^8.3CI passing

Since May 8Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/cspray/database-testing-pdo)[ Packagist](https://packagist.org/packages/cspray/database-testing-pdo)[ RSS](/packages/cspray-database-testing-pdo/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (1)

cspray/database-testing-pdo
===========================

[](#cspraydatabase-testing-pdo)

A connection adapter for [`cspray/database-testing`](https://github.com/cspray/database-testing) that allows you to use a PDO connection for testing database interactions.

Installation
------------

[](#installation)

Composer is the only supported means to install this package.

```
composer require --dev cspray/database-testing-pdo
```

Quick Start
-----------

[](#quick-start)

This library works by providing an implementation of the `Cspray\DatabaseTesting\ConnectionAdapter\ConnectionAdapter` interface, along with a variety of `Cspray\DatabaseTesting\ConnectionAdapter\ConnectionAdapterFactory` implementations designed to work with common databases. Check out the example appropriate for your database below or check out the "Database Connection Adapter Reference"!

All examples below will use code from the `cspray/database-testing-phpunit` extension. If you're using a different testing framework you may need to adjust your code as appropriate.

### Postgres

[](#postgres)

```
