php composer install -o
bin/phpspec run --format=pretty
php index.php
Resolving a discountable tier for a particular product:
$DiscountableProduct = str_replace($name, 'Discountable'.$name, $name);
$handler = new DiscountHandler(new $DiscountableProduct);
$discount = $handler->checkDiscountFor($amount = 80);
Format output properly to the console.
Resolve the discount tier implementations properly with polymorphic behaviour. There's a basic implementation of this using the Strategy design pattern.