Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 917 Bytes

README.md

File metadata and controls

26 lines (19 loc) · 917 Bytes

Solution for TTF Assignment

Built on top of Laravel Lumen fast PHP micro-framework, just to speed up development by easing common tasks. Structure auto-generated by framework, consider reviewing only these files, see below, they're contain a main business logic.

  • /app/Library/BaseMapping.php
  • /app/Library/Specialized1Mapping.php
  • /app/Library/Specialized2Mapping.php

Simple RESTful routing definition over here /app/Http/routes.php.

Run locally

# In case if composer is not installed, just run
$ curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
# Install all dependencies
$ composer install
# Run all tests
$ vendor/bin/phpunit

Open /app/tests/MappingTest.php there you'll find coverage of all possible cases.

Please let me know, if something went wrong or my help would be required.