Camspiers\LoggerBridge\LoggerBridgeTest
Class LoggerBridgeTest
Synopsis
class LoggerBridgeTest
extends PHPUnit_Framework_TestCase
{
- // methods
- public void setUp()
- public void tearDown()
- public LoggerInterface getLoggerStub()
- public LoggerBridge getLoggerBridge()
- protected PHPUnit_Framework_MockObject_MockObject getMockWithoutConstructor()
- public void testGetErrorReporter()
- public void testEnvReporter()
- public void testSetReserveMemory()
- public void testRegisterGlobalHandlersGeneral()
- public void testRegisterGlobalHandlersOnce()
- public void testRegisterGlobalHandlersMultiple()
- public void testRegisterGlobalHandlersAttached()
- public void testRegisterGlobalHandlersIsSuhosinRelevant()
- public void testErrorHandlerError()
- public void testErrorHandlerWarning()
- public void testErrorHandlerEnvironmentReporting()
- public void testErrorHandlerSuppression()
- public void testErrorHandlerNotLiveNoDisplay()
- public void testFatalErrorHandlerNotRegistered()
- public void testFatalErrorHandlerNotFatal()
- public void testFatalErrorHandlerNoReport()
- public void testFatalErrorHandlerReportDueToLive()
- public void testFatalErrorHandlerReport()
- public void testFatalErrorHandlerPreserveMemory()
- public void testExceptionHandler()
- public void testExceptionHandlerNoReport()
- public void testPreRequest()
- public void testPostRequest()
Hierarchy
Extends
- PHPUnit_Framework_TestCase
Methods
protected
- getMockWithoutConstructor() — A helper method to get a mock that doesn't call its constructor
public
- getLoggerBridge() — Helper method to return a logger bridge
- getLoggerStub() — Helper method to return a stub of a logger interface
- setUp() — Set up the error_reporting before each tests
- tearDown()
- testEnvReporter() — Test that there the default env reporter returns correctly
- testErrorHandlerEnvironmentReporting() — Tests error_reporting level
- testErrorHandlerError()
- testErrorHandlerNotLiveNoDisplay() — Tests error reporting we not live and we request no display
- testErrorHandlerSuppression()
- testErrorHandlerWarning() — Tests how the error handler calls warning errors
- testExceptionHandler()
- testExceptionHandlerNoReport()
- testFatalErrorHandlerNoReport()
- testFatalErrorHandlerNotFatal()
- testFatalErrorHandlerNotRegistered()
- testFatalErrorHandlerPreserveMemory()
- testFatalErrorHandlerReport()
- testFatalErrorHandlerReportDueToLive()
- testGetErrorReporter() — Test that there the default error reporter returns correctly
- testPostRequest()
- testPreRequest()
- testRegisterGlobalHandlersAttached() — Test that the actual error handlers are attached
- testRegisterGlobalHandlersGeneral() — Tests the general function of register
- testRegisterGlobalHandlersIsSuhosinRelevant() — Test that memory is reserved
- testRegisterGlobalHandlersMultiple() — Test that the actual error handlers are registered the correct number of times
- testRegisterGlobalHandlersOnce() — Test that the actual error handlers are registered once
- testSetReserveMemory() — Tests that the translation of the reserve memory occurs correctly