Skip to content

Instantly share code, notes, and snippets.

@wouterj
Created July 27, 2014 11:43
Show Gist options
  • Select an option

  • Save wouterj/f50500700a4d1cb3e43d to your computer and use it in GitHub Desktop.

Select an option

Save wouterj/f50500700a4d1cb3e43d to your computer and use it in GitHub Desktop.
<?php
describe('StringCalculator', function () {
it('requires string output', function () {
$this->shouldThrow('\InvalidArgumentException')->during('add', [null]);
});
it('adds 2 numbers separated by comma', function () {
$this->add('1,2')->shouldReturn(3);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment