spec\PhpSpec\Matcher\TriggerMatcherSpec::it_accepts_a_method_during_which_any_error_should_be_triggered PHP Method

it_accepts_a_method_during_which_any_error_should_be_triggered() public method

public it_accepts_a_method_during_which_any_error_should_be_triggered ( ArrayObject $arr )
$arr ArrayObject
    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());
    }