We have created a platform for verifying developers skills with programming tasks ([url removed, login to view]). Now we need a simple PHP application that will let us to verify PHP developers skills at the senior level. Candidate's solutions are verified with unit tests in an automated way.
Your job is to create such programming task with unit tests.
Task should require from candidate knowledge about PHP standard API at senior level. Expected solution verified with automatic tests should be considered as a proof of that knowledge. Created application must follow best practices and commonly used code conventions and techniques.
- created application should be a Phing project
- use Composer to resolve external dependencies
- use PHPUnit to create verification tests
- task for candidate should require knowledge about PHP at senior level
- candidate should be able to complete the task within 30-40 minutes
- you should deliver a sample implementation of the candidate task
- There must be a lot of tests, which will validate the correctness of candidates solution.
We have a sample project to demonstrate the idea. It’s a simple Calculator app, and we are asking the candidate to implement simple mathematical operations (add, subtract etc). Verification tests are used to check the correctness of implementation (we are testing for edge cases, division by zero etc).
You can choose the business domain for an application, it can be a simple blog (or a part of blog), some fragment of online store, reservation system or something like that. It’s completely up to you.