Skip to content

Commit

Permalink
Unit tests for the application
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Babker committed Oct 10, 2015
1 parent 63739a0 commit b48d433
Show file tree
Hide file tree
Showing 15 changed files with 1,859 additions and 15 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/.idea
/vendor
/phpunit.xml
/build/coverage
/etc/config.json
7 changes: 7 additions & 0 deletions boot.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,11 @@

const APPROOT = __DIR__;

$composerPath = APPROOT . '/vendor/autoload.php';

if (!file_exists($composerPath))
{
throw new RuntimeException('Composer is not set up, please run "composer install".');
}

require APPROOT . '/vendor/autoload.php';
9 changes: 9 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,18 @@
"joomla/uri": "~1.1",
"joomla/view": "2.*@dev"
},
"require-dev": {
"phpunit/phpunit": "~4.8",
"joomla/session": "~1.3"
},
"autoload": {
"psr-4": {
"Stats\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Stats\\Tests\\": "tests/"
}
}
}
Loading

0 comments on commit b48d433

Please sign in to comment.