/** * Test raise() with specified of code */ public function testSpecified_code() { $ac = new ActionController(); try { $ac->raise('text3', 'text4', 250); } catch (Exception $e) { $this->assertTrue(is_a($e, 'ActionControllerError')); $this->assertEquals('Error Message: text3', $e->getMessage()); $this->assertEquals('Error Message: text3', $e->error_message); $this->assertEquals('text4', $e->error_heading); $this->assertEquals(250, $e->error_code); return; } $this->fail('raise() exception with code 250 not raised'); }