21 #[\PHPUnit\Framework\Attributes\DataProvider('constructDataProvider')] 24 $ilTestNoNextRequestableHintExistsException = isset($input[
'code'])
28 $this->assertInstanceOf(ilTestNoNextRequestableHintExistsException::class, $ilTestNoNextRequestableHintExistsException);
29 $this->assertEquals($output[
'msg'], $ilTestNoNextRequestableHintExistsException->getMessage());
30 $this->assertEquals($output[
'code'], $ilTestNoNextRequestableHintExistsException->getCode());
36 [[
'msg' =>
'',
'code' => -1], [
'msg' => ilTestNoNextRequestableHintExistsException::class,
'code' => -1]],
37 [[
'msg' =>
'',
'code' => 0], [
'msg' => ilTestNoNextRequestableHintExistsException::class,
'code' => 0]],
38 [[
'msg' =>
'',
'code' => 1], [
'msg' => ilTestNoNextRequestableHintExistsException::class,
'code' => 1]],
39 [[
'msg' =>
''], [
'msg' => ilTestNoNextRequestableHintExistsException::class,
'code' => 0]],
40 [[
'msg' =>
'test',
'code' => -1], [
'msg' =>
'test',
'code' => -1]],
41 [[
'msg' =>
'test',
'code' => 0], [
'msg' =>
'test',
'code' => 0]],
42 [[
'msg' =>
'test',
'code' => 1], [
'msg' =>
'test',
'code' => 1]],
43 [[
'msg' =>
'test'], [
'msg' =>
'test',
'code' => 0]]
47 #[\PHPUnit\Framework\Attributes\DataProvider('exceptionDataProvider')] 50 $this->expectException(ilTestNoNextRequestableHintExistsException::class);
51 $this->expectExceptionMessage($output[
'msg']);
52 $this->expectExceptionCode($output[
'code']);
53 throw isset($input[
'code'])
62 [[
'msg' =>
'',
'code' => -1], [
'msg' => ilTestNoNextRequestableHintExistsException::class,
'code' => -1]],
63 [[
'msg' =>
'',
'code' => 0], [
'msg' => ilTestNoNextRequestableHintExistsException::class,
'code' => 0]],
64 [[
'msg' =>
'',
'code' => 1], [
'msg' => ilTestNoNextRequestableHintExistsException::class,
'code' => 1]],
65 [[
'msg' =>
''], [
'msg' => ilTestNoNextRequestableHintExistsException::class,
'code' => 0]],
66 [[
'msg' =>
'test',
'code' => -1], [
'msg' =>
'test',
'code' => -1]],
67 [[
'msg' =>
'test',
'code' => 0], [
'msg' =>
'test',
'code' => 0]],
68 [[
'msg' =>
'test',
'code' => 1], [
'msg' =>
'test',
'code' => 1]],
69 [[
'msg' =>
'test'], [
'msg' =>
'test',
'code' => 0]]
static exceptionDataProvider()
testException(array $input, array $output)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static constructDataProvider()
testConstruct(array $input, array $output)