2 class ExceptionTest
extends PHPUnit_Framework_TestCase
9 const ERROR_MESSAGE
= 'Exception message';
16 const ERROR_CODE
= 500;
19 * @expectedException FooBarBaz
21 public function testOne()
26 * @expectedException Foo_Bar_Baz
28 public function testTwo()
33 * @expectedException Foo\Bar\Baz
35 public function testThree()
40 * @expectedException ほげ
42 public function testFour()
47 * @expectedException Class Message 1234
49 public function testFive()
54 * @expectedException Class
55 * @expectedExceptionMessage Message
56 * @expectedExceptionCode 1234
58 public function testSix()
63 * @expectedException Class
64 * @expectedExceptionMessage Message
65 * @expectedExceptionCode ExceptionCode
67 public function testSeven()
72 * @expectedException Class
73 * @expectedExceptionMessage Message
74 * @expectedExceptionCode 0
76 public function testEight()
81 * @expectedException Class
82 * @expectedExceptionMessage ExceptionTest::ERROR_MESSAGE
83 * @expectedExceptionCode ExceptionTest::ERROR_CODE
85 public function testNine()
90 * @expectedException Class
91 * @expectedExceptionCode ExceptionTest::UNKNOWN_CODE_CONSTANT
92 * @expectedExceptionMessage ExceptionTest::UNKNOWN_MESSAGE_CONSTANT
94 public function testUnknownConstants()