Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/elazar/phpunit-db-examples

Example code from a presentation on database testing with PHPUnit
https://github.com/elazar/phpunit-db-examples

Last synced: 6 days ago
JSON representation

Example code from a presentation on database testing with PHPUnit

Awesome Lists containing this project

README

        

Check out [the slides](http://matthewturland.com/slides/phpunit-db) associated with this code.

# Installation

```
git clone git://github.com/elazar/phpunit-db-examples.git
cd php-db-examples
mysql -e 'create database phpunit_db;grant all on phpunit_db to "%"@"%";'
mysql phpunit_db < phpunit_db.sql
cd tests
php composer.phar install
```

# Usage

```
cd php-db-examples/tests
./vendor/bin/phpunit My/Dao/FooTest.php
```

# License

Released under the [BSD License](http://opensource.org/licenses/BSD-2-Clause).