In phpspec i can test something like this:
function it_must_be_constructed_with_my_variable()
{
$this->shouldThrow(new \Exception('bla'))->during('__construct', array('variable' => 'value'));
}
But what if i wanted to make sure an exception is thrown if something is not passed to the function?
I.e. i want to say that an exception will be thrown if the array passed is not equals to some value.