Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save hungtrinh/e7d982850cecaaa92e07d70ac70a9b6d to your computer and use it in GitHub Desktop.
Save hungtrinh/e7d982850cecaaa92e07d70ac70a9b6d to your computer and use it in GitHub Desktop.
First specification, first unittest coe, first consume code
<?php
function test_with_platinum_member_will_discount_fifteen_percent() {
if ( 0.15 === discountRateByMembershipType('platinum') {
echo 'Test Done';
} else {
echo 'Test Fail';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment