Skip to content

Commit

Permalink
Merge pull request #248 from envms/2.0/unit-tests
Browse files Browse the repository at this point in the history
Switch to PHPUnit for unit tests
  • Loading branch information
cbornhoft committed Aug 26, 2018
2 parents 3c47abe + c3a228a commit 80a6809
Show file tree
Hide file tree
Showing 81 changed files with 1,261 additions and 1,883 deletions.
10 changes: 6 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
language: php
php:
- 7.0
- 7.1
- 7.2
- hhvm

script: php tests/run-tests.php
env:
- DB_USER=root

script: phpunit --configuration phpunit.xml
before_script:
- mysql -u root < tests/fluentdb.sql
- composer install
- mysql -u $DB_USER < tests/_resources/fluentdb.sql

notifications:
slack:
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
}
},
"require-dev": {
"phpunit/phpunit": "^6.2"
"phpunit/phpunit": "^7.0",
"envms/fluent-test": "^1.0"
}
}
Loading

0 comments on commit 80a6809

Please sign in to comment.