Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sebastianbergmann/dbunit

DbUnit port for PHP/PHPUnit.
https://github.com/sebastianbergmann/dbunit

Last synced: about 2 months ago
JSON representation

DbUnit port for PHP/PHPUnit.

Awesome Lists containing this project

README

        

[This extension is no longer maintained](https://github.com/sebastianbergmann/dbunit/issues/217)

# DbUnit

[PHPUnit](https://phpunit.de/) extension for database interaction testing.

## Installation

### Composer

If you use [Composer](https://getcomposer.org/) to manage the dependencies of your project then you can add DbUnit as a development-time dependency to your project:

```
$ composer require --dev phpunit/dbunit
```

### PHP Archive (PHAR)

You can download a PHAR of DbUnit:

```
$ wget https://phar.phpunit.de/dbunit.phar
```

The example below shows how to configure PHPUnit to load all `*.phar` files found in a given directory (`tools/phpunit.d` in this example):

```xml

```