26 $ilTestMissingSourcePoolDefinitionParameterException = isset($input[
'code'])
30 $this->assertInstanceOf(ilTestMissingSourcePoolDefinitionParameterException::class, $ilTestMissingSourcePoolDefinitionParameterException);
31 $this->assertEquals($output[
'msg'], $ilTestMissingSourcePoolDefinitionParameterException->getMessage());
32 $this->assertEquals($output[
'code'], $ilTestMissingSourcePoolDefinitionParameterException->getCode());
38 [[
'msg' =>
'',
'code' => -1], [
'msg' => ilTestMissingSourcePoolDefinitionParameterException::class,
'code' => -1]],
39 [[
'msg' =>
'',
'code' => 0], [
'msg' => ilTestMissingSourcePoolDefinitionParameterException::class,
'code' => 0]],
40 [[
'msg' =>
'',
'code' => 1], [
'msg' => ilTestMissingSourcePoolDefinitionParameterException::class,
'code' => 1]],
41 [[
'msg' =>
''], [
'msg' => ilTestMissingSourcePoolDefinitionParameterException::class,
'code' => 0]],
42 [[
'msg' =>
'test',
'code' => -1], [
'msg' =>
'test',
'code' => -1]],
43 [[
'msg' =>
'test',
'code' => 0], [
'msg' =>
'test',
'code' => 0]],
44 [[
'msg' =>
'test',
'code' => 1], [
'msg' =>
'test',
'code' => 1]],
45 [[
'msg' =>
'test'], [
'msg' =>
'test',
'code' => 0]]
54 $this->expectException(ilTestMissingSourcePoolDefinitionParameterException::class);
55 $this->expectExceptionMessage($output[
'msg']);
56 $this->expectExceptionCode($output[
'code']);
57 throw isset($input[
'code'])
66 [[
'msg' =>
'',
'code' => -1], [
'msg' => ilTestMissingSourcePoolDefinitionParameterException::class,
'code' => -1]],
67 [[
'msg' =>
'',
'code' => 0], [
'msg' => ilTestMissingSourcePoolDefinitionParameterException::class,
'code' => 0]],
68 [[
'msg' =>
'',
'code' => 1], [
'msg' => ilTestMissingSourcePoolDefinitionParameterException::class,
'code' => 1]],
69 [[
'msg' =>
''], [
'msg' => ilTestMissingSourcePoolDefinitionParameterException::class,
'code' => 0]],
70 [[
'msg' =>
'test',
'code' => -1], [
'msg' =>
'test',
'code' => -1]],
71 [[
'msg' =>
'test',
'code' => 0], [
'msg' =>
'test',
'code' => 0]],
72 [[
'msg' =>
'test',
'code' => 1], [
'msg' =>
'test',
'code' => 1]],
73 [[
'msg' =>
'test'], [
'msg' =>
'test',
'code' => 0]]
static constructDataProvider()
testConstruct(array $input, array $output)
constructDataProvider
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Exception for invalid parameters (e.g.
testException(array $input, array $output)
exceptionDataProvider
static exceptionDataProvider()