Skip to content

Instantly share code, notes, and snippets.

@hungtrinh
Last active November 3, 2019 15:21
Show Gist options
  • Save hungtrinh/bb1c10e990fefe95701c8d20549f1650 to your computer and use it in GitHub Desktop.
Save hungtrinh/bb1c10e990fefe95701c8d20549f1650 to your computer and use it in GitHub Desktop.
second specification, second requirement, business rule for gold customer
<?php
function test_with_gold_member_will_discount_ten_percent() {
if ( 0.1 === discountRateByMembershipType('gold') {
echo 'Test Done';
} else {
echo 'Test Fail';
}
}
//... code test_with_platinum_member_will_discount_fifteen_percent here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment