add myCalendar into
[awl.git] / vendor / phpunit / phpunit / Tests / _files / ExceptionTest.php
blob3493743e4274e4c77b5f8b72348cfc5b4af1a88d
1 <?php
2 class ExceptionTest extends PHPUnit_Framework_TestCase
4 /**
5 * Exception message
6 *
7 * @var string
8 */
9 const ERROR_MESSAGE = 'Exception message';
11 /**
12 * Exception code
14 * @var integer
16 const ERROR_CODE = 500;
18 /**
19 * @expectedException FooBarBaz
21 public function testOne()
25 /**
26 * @expectedException Foo_Bar_Baz
28 public function testTwo()
32 /**
33 * @expectedException Foo\Bar\Baz
35 public function testThree()
39 /**
40 * @expectedException ほげ
42 public function testFour()
46 /**
47 * @expectedException Class Message 1234
49 public function testFive()
53 /**
54 * @expectedException Class
55 * @expectedExceptionMessage Message
56 * @expectedExceptionCode 1234
58 public function testSix()
62 /**
63 * @expectedException Class
64 * @expectedExceptionMessage Message
65 * @expectedExceptionCode ExceptionCode
67 public function testSeven()
71 /**
72 * @expectedException Class
73 * @expectedExceptionMessage Message
74 * @expectedExceptionCode 0
76 public function testEight()
80 /**
81 * @expectedException Class
82 * @expectedExceptionMessage ExceptionTest::ERROR_MESSAGE
83 * @expectedExceptionCode ExceptionTest::ERROR_CODE
85 public function testNine()
89 /**
90 * @expectedException Class
91 * @expectedExceptionCode ExceptionTest::UNKNOWN_CODE_CONSTANT
92 * @expectedExceptionMessage ExceptionTest::UNKNOWN_MESSAGE_CONSTANT
94 public function testUnknownConstants()