Skip to content
Branch: master
Find file History

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
migrations
src
tests
.gitignore
README.md
Vagrantfile
composer.json
composer.lock
index.php
phinx.yml
phpunit.xml.dist

README.md

Blog Sample: Database Testing

Steps to run the code referenced in the blog post Database Testing with PHPUnit.

  1. Install Vagrant (https://www.vagrantup.com/)
  2. Run vagrant up to install the ubuntu 14.04 vm, with MySQL preinstalled
  3. Run composer install to install local PHP packages
  4. Run vendor/bin/phinx migrate to install the correct database schema and data
  5. Run vendor/bin/phpunit to run the unit tests

You can also optionally run the tests with code coverage, which can be viewed in the report directory:

vendor/bin/phpunit --coverage-html report

You can’t perform that action at this time.