- Project for a Test task made by Cloudbeds - Backend Engineer
- Execute
composer install
- Create a MYSQL database and execute the script
db/backup_structure.sql
- Make a copy of the file
config.php.dist
in a file calledconfig.php
and edit it with your database credentials - To Execute tests:
./vendor/bin/phpunit --bootstrap vendor/autoload.php tests
This is mocking the Repository, the idea was to avoid using a database for unit testing. All data would be managed in memory as array of models, only for running unittests - To run the server for testing purposes:
php -S localhost:8080 -t public/
- Test server uploaded to http://cloudbeds.galivar.com/