Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/elazar/phpunit-db-examples
- Owner: elazar
- Created: 2013-02-04T02:32:46.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-02-08T15:59:21.000Z (almost 12 years ago)
- Last Synced: 2024-11-01T00:11:53.609Z (about 2 months ago)
- Language: PHP
- Size: 117 KB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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).