Coder Social home page Coder Social logo

chicho_challenge's Introduction

Chicho challenge

Use

  1. Fork this repository
  2. Run composer install
  3. Run php ./vendor/phpunit/phpunit/phpunit (requires php >= 7.3 if you use other version please update composer.json file first)

Tasks

  • Fix any errors and add the necessary to make the test work and commit it
  • Add a test for the method makeCallByName passing a valid contact, mock up any hard dependency and add the right assertions
  • Add the necessary code in the production code to check when the contact is not found and add another test to test that case
  • Add your own logic to send a SMS given a number and the body, the method should validate the number using the validateNumber method from ContactService and using the provider property’s methods
  • When writing the tests you should mock every method from ContactService

Bonus

  • Can you add support for two mobile carriers? How would you accomplish that?
  • Create a new integration with an external service like Twilio to send and track an SMS.
  • Create Unit Tests for this integration using a mock web server or similar.

chicho_challenge's People

Contributors

aeanez avatar jobwongdavila avatar keynertyc avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.