After downloading the project execute
composer install
./init.sh
If you have dependency errors when initializing the project, execute this command
composer update
Your models must be in the App
namespace. The unit tests in this project will try to load them in the following way:
use App\Player;
use App\Team;
use App\Sponsor;
You must also create the migrations in folder database/migrations
, and the seeders in folder database/seeds
for initializing the database. You can execute them together with:
php artisan migrate --seed
The folder tests/Unit
contains several tests for the exercise. Once you have written your code, and executed the migrations and seeders, run PHPUnit with:
vendor/bin/phpunit