/var/www/hkosl.com/demo_google/application/vendor/phpunit/phpunit/tests/_files/ExceptionTest.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<?php
class ExceptionTest extends PHPUnit_Framework_TestCase
{
    
/**
     * Exception message
     *
     * @var string
     */
    
const ERROR_MESSAGE 'Exception message';

    
/**
     * Exception message
     *
     * @var string
     */
    
const ERROR_MESSAGE_REGEX '#regex#';

    
/**
     * Exception code
     *
     * @var int
     */
    
const ERROR_CODE 500;

    
/**
     * @expectedException FooBarBaz
     */
    
public function testOne()
    {
    }

    
/**
     * @expectedException Foo_Bar_Baz
     */
    
public function testTwo()
    {
    }

    
/**
     * @expectedException Foo\Bar\Baz
     */
    
public function testThree()
    {
    }

    
/**
     * @expectedException ほげ
     */
    
public function testFour()
    {
    }

    
/**
     * @expectedException Class Message 1234
     */
    
public function testFive()
    {
    }

    
/**
     * @expectedException Class
     * @expectedExceptionMessage Message
     * @expectedExceptionCode 1234
     */
    
public function testSix()
    {
    }

    
/**
     * @expectedException Class
     * @expectedExceptionMessage Message
     * @expectedExceptionCode ExceptionCode
     */
    
public function testSeven()
    {
    }

    
/**
     * @expectedException Class
     * @expectedExceptionMessage Message
     * @expectedExceptionCode 0
     */
    
public function testEight()
    {
    }

    
/**
     * @expectedException Class
     * @expectedExceptionMessage ExceptionTest::ERROR_MESSAGE
     * @expectedExceptionCode ExceptionTest::ERROR_CODE
     */
    
public function testNine()
    {
    }

    
/** @expectedException Class */
    
public function testSingleLine()
    {
    }

    
/**
     * @expectedException Class
     * @expectedExceptionCode ExceptionTest::UNKNOWN_CODE_CONSTANT
     * @expectedExceptionMessage ExceptionTest::UNKNOWN_MESSAGE_CONSTANT
     */
    
public function testUnknownConstants()
    {
    }

    
/**
     * @expectedException Class
     * @expectedExceptionCode 1234
     * @expectedExceptionMessage Message
     * @expectedExceptionMessageRegExp #regex#
     */
    
public function testWithRegexMessage()
    {
    }

    
/**
     * @expectedException Class
     * @expectedExceptionCode 1234
     * @expectedExceptionMessage Message
     * @expectedExceptionMessageRegExp ExceptionTest::ERROR_MESSAGE_REGEX
     */
    
public function testWithRegexMessageFromClassConstant()
    {
    }

    
/**
     * @expectedException Class
     * @expectedExceptionCode 1234
     * @expectedExceptionMessage Message
     * @expectedExceptionMessageRegExp ExceptionTest::UNKNOWN_MESSAGE_REGEX_CONSTANT
     */
    
public function testWithUnknowRegexMessageFromClassConstant()
    {
    }
}