1
exercism fetch php change

Change

Correctly determine the fewest number of coins to be given to a customer such that the sum of the coins' value would equal the correct amount of change.

For example

Edge cases

Making the Test Suite Pass

  1. Get PHPUnit.

    1
    2
    % wget --no-check-certificate https://phar.phpunit.de/phpunit.phar
    % chmod +x phpunit.phar
    
  2. Execute the tests for an assignment.

    1
    % phpunit.phar wordy/wordy_test.php
    

Source

Software Craftsmanship - Kata-logue http://craftsmanship.sv.cmu.edu/exercises/coin-change-kata

Submitting Incomplete Solutions

It's possible to submit an incomplete solution so you can see how others have completed the exercise.