Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sebastianbergmann/dbunit
DbUnit port for PHP/PHPUnit.
https://github.com/sebastianbergmann/dbunit
Last synced: 3 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 (about 14 years ago)
- Default Branch: master
- Last Pushed: 2018-10-02T09:37:27.000Z (over 5 years ago)
- Last Synced: 2024-03-29T16:02:45.811Z (3 months ago)
- Language: PHP
- Homepage: https://phpunit.de/
- Size: 1.22 MB
- Stars: 223
- Watchers: 18
- Forks: 184
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeLog.md
- License: LICENSE
Lists
- awesome-php-zh_CN - DBUnit - 一个PHPUnit的数据库测试库 (测试 Testing)
- awesome-php - DBUnit - PHPUnit的代码测试库 (测试( Testing ))
- awesome-php - DBUnit - A database testing library for PHPUnit. (Testing)
- awesome-php - DBUnit - PHPUnit的代码测试库 (URL)
- awesome-php - DBUnit - A database testing library for PHPUnit. (Testing)
- awesome-php - DBUnit - PHPUnit的代码测试库 (测试( Testing ))
- awesome-stars - dbunit
- awesome-php-cn - 官网
- awesome-php-cn - 官网
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
```