Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
// tak jest
$this->add('')->shouldReturn(0);
$this->shouldThrow('Exception')->during('add', [null]);
// a mogłoby być tak
$this->add('')->shouldReturn(0);
$this->add(null)->shouldThrow('Exception');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment