function it_accepts_a_method_during_which_an_error_should_not_be_triggered(ArrayObject $arr) { $this->negativeMatch('trigger', $arr, array(E_USER_NOTICE, 'An error'))->during('ksort', array()); }