31 $ilTestQuestionPoolNotAvailableAsSourcePoolException = isset($input[
'code'])
34 $this->assertInstanceOf(ilTestQuestionPoolNotAvailableAsSourcePoolException::class, $ilTestQuestionPoolNotAvailableAsSourcePoolException);
35 $this->assertEquals($output[
'msg'], $ilTestQuestionPoolNotAvailableAsSourcePoolException->getMessage());
36 $this->assertEquals($output[
'code'], $ilTestQuestionPoolNotAvailableAsSourcePoolException->getCode());
42 [[
'msg' =>
'',
'code' => -1], [
'msg' => ilTestQuestionPoolNotAvailableAsSourcePoolException::class,
'code' => 0]],
43 [[
'msg' =>
'',
'code' => 0], [
'msg' => ilTestQuestionPoolNotAvailableAsSourcePoolException::class,
'code' => 0]],
44 [[
'msg' =>
'',
'code' => 1], [
'msg' => ilTestQuestionPoolNotAvailableAsSourcePoolException::class,
'code' => 0]],
45 [[
'msg' =>
''], [
'msg' => ilTestQuestionPoolNotAvailableAsSourcePoolException::class,
'code' => 0]],
46 [[
'msg' =>
'test',
'code' => -1], [
'msg' => ilTestQuestionPoolNotAvailableAsSourcePoolException::class,
'code' => 0]],
47 [[
'msg' =>
'test',
'code' => 0], [
'msg' => ilTestQuestionPoolNotAvailableAsSourcePoolException::class,
'code' => 0]],
48 [[
'msg' =>
'test',
'code' => 1], [
'msg' => ilTestQuestionPoolNotAvailableAsSourcePoolException::class,
'code' => 0]],
49 [[
'msg' =>
'test'], [
'msg' => ilTestQuestionPoolNotAvailableAsSourcePoolException::class,
'code' => 0]]
58 $this->expectException(ilTestQuestionPoolNotAvailableAsSourcePoolException::class);
59 $this->expectExceptionMessage($output[
'msg']);
60 $this->expectExceptionCode($output[
'code']);
61 throw isset($input[
'code'])
69 [[
'msg' =>
'',
'code' => -1], [
'msg' => ilTestQuestionPoolNotAvailableAsSourcePoolException::class,
'code' => 0]],
70 [[
'msg' =>
'',
'code' => 0], [
'msg' => ilTestQuestionPoolNotAvailableAsSourcePoolException::class,
'code' => 0]],
71 [[
'msg' =>
'',
'code' => 1], [
'msg' => ilTestQuestionPoolNotAvailableAsSourcePoolException::class,
'code' => 0]],
72 [[
'msg' =>
''], [
'msg' => ilTestQuestionPoolNotAvailableAsSourcePoolException::class,
'code' => 0]],
73 [[
'msg' =>
'test',
'code' => -1], [
'msg' => ilTestQuestionPoolNotAvailableAsSourcePoolException::class,
'code' => 0]],
74 [[
'msg' =>
'test',
'code' => 0], [
'msg' => ilTestQuestionPoolNotAvailableAsSourcePoolException::class,
'code' => 0]],
75 [[
'msg' =>
'test',
'code' => 1], [
'msg' => ilTestQuestionPoolNotAvailableAsSourcePoolException::class,
'code' => 0]],
76 [[
'msg' =>
'test'], [
'msg' => ilTestQuestionPoolNotAvailableAsSourcePoolException::class,
'code' => 0]]
static exceptionDataProvider()
testException(array $input, array $output)
exceptionDataProvider
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
testConstruct(array $input, array $output)
constructDataProvider
static constructDataProvider()