~tcuthbert/wordpress/openstack-objectstorage

« back to all changes in this revision

Viewing changes to vendor/phpunit/phpunit/tests/_files/ExceptionTest.php

  • Committer: Jacek Nykis
  • Date: 2015-02-11 15:35:31 UTC
  • Revision ID: jacek.nykis@canonical.com-20150211153531-hmy6zi0ov2qfkl0b
Initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
class ExceptionTest extends PHPUnit_Framework_TestCase
 
3
{
 
4
    /**
 
5
     * Exception message
 
6
     *
 
7
     * @var string
 
8
     */
 
9
    const ERROR_MESSAGE = 'Exception message';
 
10
 
 
11
    /**
 
12
     * Exception message
 
13
     *
 
14
     * @var string
 
15
     */
 
16
    const ERROR_MESSAGE_REGEX = '#regex#';
 
17
 
 
18
    /**
 
19
     * Exception code
 
20
     *
 
21
     * @var integer
 
22
     */
 
23
    const ERROR_CODE = 500;
 
24
 
 
25
    /**
 
26
     * @expectedException FooBarBaz
 
27
     */
 
28
    public function testOne()
 
29
    {
 
30
    }
 
31
 
 
32
    /**
 
33
     * @expectedException Foo_Bar_Baz
 
34
     */
 
35
    public function testTwo()
 
36
    {
 
37
    }
 
38
 
 
39
    /**
 
40
     * @expectedException Foo\Bar\Baz
 
41
     */
 
42
    public function testThree()
 
43
    {
 
44
    }
 
45
 
 
46
    /**
 
47
     * @expectedException ほげ
 
48
     */
 
49
    public function testFour()
 
50
    {
 
51
    }
 
52
 
 
53
    /**
 
54
     * @expectedException Class Message 1234
 
55
     */
 
56
    public function testFive()
 
57
    {
 
58
    }
 
59
 
 
60
    /**
 
61
     * @expectedException Class
 
62
     * @expectedExceptionMessage Message
 
63
     * @expectedExceptionCode 1234
 
64
     */
 
65
    public function testSix()
 
66
    {
 
67
    }
 
68
 
 
69
    /**
 
70
     * @expectedException Class
 
71
     * @expectedExceptionMessage Message
 
72
     * @expectedExceptionCode ExceptionCode
 
73
     */
 
74
    public function testSeven()
 
75
    {
 
76
    }
 
77
 
 
78
    /**
 
79
     * @expectedException Class
 
80
     * @expectedExceptionMessage Message
 
81
     * @expectedExceptionCode 0
 
82
     */
 
83
    public function testEight()
 
84
    {
 
85
    }
 
86
 
 
87
    /**
 
88
     * @expectedException Class
 
89
     * @expectedExceptionMessage ExceptionTest::ERROR_MESSAGE
 
90
     * @expectedExceptionCode ExceptionTest::ERROR_CODE
 
91
     */
 
92
    public function testNine()
 
93
    {
 
94
    }
 
95
 
 
96
    /** @expectedException Class */
 
97
    public function testSingleLine()
 
98
    {
 
99
    }
 
100
 
 
101
    /**
 
102
     * @expectedException Class
 
103
     * @expectedExceptionCode ExceptionTest::UNKNOWN_CODE_CONSTANT
 
104
     * @expectedExceptionMessage ExceptionTest::UNKNOWN_MESSAGE_CONSTANT
 
105
     */
 
106
    public function testUnknownConstants()
 
107
    {
 
108
    }
 
109
 
 
110
    /**
 
111
     * @expectedException Class
 
112
     * @expectedExceptionCode 1234
 
113
     * @expectedExceptionMessage Message
 
114
     * @expectedExceptionMessageRegExp #regex#
 
115
     */
 
116
    public function testWithRegexMessage()
 
117
    {
 
118
    }
 
119
 
 
120
    /**
 
121
     * @expectedException Class
 
122
     * @expectedExceptionCode 1234
 
123
     * @expectedExceptionMessage Message
 
124
     * @expectedExceptionMessageRegExp ExceptionTest::ERROR_MESSAGE_REGEX
 
125
     */
 
126
    public function testWithRegexMessageFromClassConstant()
 
127
    {
 
128
    }
 
129
 
 
130
    /**
 
131
     * @expectedException Class
 
132
     * @expectedExceptionCode 1234
 
133
     * @expectedExceptionMessage Message
 
134
     * @expectedExceptionMessageRegExp ExceptionTest::UNKNOWN_MESSAGE_REGEX_CONSTANT
 
135
     */
 
136
    public function testWithUnknowRegexMessageFromClassConstant()
 
137
    {
 
138
    }
 
139
}