Skip to content

Commit

Permalink
Unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Ross committed May 31, 2015
1 parent 65987b6 commit 57ee9b3
Show file tree
Hide file tree
Showing 5 changed files with 513 additions and 0 deletions.
25 changes: 25 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
module.exports = function(grunt) {

grunt.initConfig({
phpunit: {
classes: {
dir: 'tests/'
},
options: {
bin: 'vendor/bin/phpunit',
bootstrap: 'offline-country-reverse-geocoder.php',
colors: true
}
},
watch: {
files: ['offline-country-reverse-geocoder.php', 'polygons.properties'],
tasks: ['phpunit']
}
});

grunt.loadNpmTasks('grunt-phpunit');

grunt.registerTask('test', ['phpunit']);
grunt.registerTask('default', ['phpunit']);

};
8 changes: 8 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "offline-country-reverse-geocoder",
"type": "library",
"require": {
"php": ">=5.3",
"phpunit/phpunit": "~3.7.10"
}
}
Loading

0 comments on commit 57ee9b3

Please sign in to comment.