/** * @covers JError::addToStack */ public function testAddToStack() { // Remove the following lines when the framework is fixed. //$this->markTestSkipped('The framework is currently broken. Skipping this test.'); JErrorInspector::manipulateStack(array('value1', 'value2', 'value3')); $exception = new JException('This is the error message', 1056, 'error'); JError::addToStack($exception); $stack = JErrorInspector::inspectStack(); $this->assertThat($stack[3], $this->identicalTo($exception), 'The exception did not get properly added to the stack'); JErrorInspector::manipulateStack(array()); }