Skip to content

xaviBazalar/php-challenge-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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?

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages