https://github.com/sebastianbergmann/dbunit
DbUnit port for PHP/PHPUnit.
https://github.com/sebastianbergmann/dbunit
Last synced: 5 months ago
JSON representation
DbUnit port for PHP/PHPUnit.
- Host: GitHub
- URL: https://github.com/sebastianbergmann/dbunit
- Owner: sebastianbergmann
- License: other
- Archived: true
- Created: 2010-05-08T17:00:22.000Z (almost 16 years ago)
- Default Branch: master
- Last Pushed: 2018-10-02T09:37:27.000Z (over 7 years ago)
- Last Synced: 2024-09-21T10:02:50.920Z (over 1 year ago)
- Language: PHP
- Homepage: https://phpunit.de/
- Size: 1.22 MB
- Stars: 225
- Watchers: 18
- Forks: 186
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeLog.md
- License: LICENSE
Awesome Lists containing this project
- awesome-php-cn - 官网
- awesome-php - DBUnit - 一个PHPUnit的数据库测试库 (测试 Testing)
- awesome-php - DBUnit - PHPUnit的代码测试库 (测试( Testing ))
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
```