Skip to content

Instantly share code, notes, and snippets.

@julesbou
Created March 11, 2016 13:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save julesbou/0c859273b40f77b68127 to your computer and use it in GitHub Desktop.
Save julesbou/0c859273b40f77b68127 to your computer and use it in GitHub Desktop.
<?php
$ba = new BankAccount();
$ba->credit(200);
$ba->credit(‘invalid value’); // throws InvalidArgumentException
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment