2 class Issue244Test extends PHPUnit_Framework_TestCase
5 * @expectedException Issue244Exception
6 * @expectedExceptionCode 123StringCode
8 public function testWorks()
10 throw new Issue244Exception;
14 * @expectedException Issue244Exception
15 * @expectedExceptionCode OtherString
17 public function testFails()
19 throw new Issue244Exception;
23 * @expectedException Issue244Exception
24 * @expectedExceptionCode 123
26 public function testFailsTooIfExpectationIsANumber()
28 throw new Issue244Exception;
32 * @expectedException Issue244ExceptionIntCode
33 * @expectedExceptionCode 123String
35 public function testFailsTooIfExceptionCodeIsANumber()
37 throw new Issue244ExceptionIntCode;
41 class Issue244Exception extends Exception
43 public function __construct()
45 $this->code = '123StringCode';
49 class Issue244ExceptionIntCode extends Exception
51 public function __construct()