Skip to content

Instantly share code, notes, and snippets.

@MacDada

MacDada/dnspec6.php

Created Jun 10, 2014
Embed
What would you like to do?
<?php
return
[
'It is initializable' => function ($calculator)
{
$calculator->shouldHaveType('StringCalculator');
},
'It requires string input' => function ($calculator)
{
$calculator->shouldThrow('\InvalidArgumentException')->during('add', [null]);
},
'It adds 2 numbers separated by comma' => function ($calculator)
{
$calculator->add('1,2')->shouldReturn(3);
},
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment