function it_accepts_a_method_during_which_any_error_should_be_triggered(ArrayObject $arr)
{
$arr->ksort()->will(function () {
trigger_error('An error', E_USER_NOTICE);
});
$this->positiveMatch('trigger', $arr, array(null, null))->during('ksort', array());
}