Skip to content
This repository was archived by the owner on Dec 7, 2018. It is now read-only.

sebastianbergmann/dbunit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

15e4875 · Oct 2, 2018
Sep 10, 2018
Apr 30, 2018
Jan 24, 2012
Oct 19, 2017
Apr 30, 2018
Feb 7, 2018
Feb 7, 2018
Feb 7, 2018
Oct 2, 2018
Jan 6, 2017
Feb 7, 2018
Feb 7, 2018
Oct 19, 2017
Oct 18, 2017
Jan 6, 2017

Repository files navigation

This extension is no longer maintained

DbUnit

PHPUnit extension for database interaction testing.

Installation

Composer

If you use Composer 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 version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/6.0/phpunit.xsd"
         extensionsDirectory="tools/phpunit.d">
</phpunit>