Psr\Log\Test\LoggerInterfaceTest
Provides a base test class for ensuring compliance with the LoggerInterface
Implementors can extend the class and implement abstract methods to run this as part of their test suite
Synopsis
class LoggerInterfaceTest
extends PHPUnit_Framework_TestCase
{
- // methods
- public abstract LoggerInterface getLogger()
- public abstract array getLogs()
- public void testImplements()
- public void testLogsAtAllLevels()
- public void provideLevelsAndMessages()
- public void testThrowsOnInvalidLevel()
- public void testContextReplacement()
- public void testObjectCastToString()
- public void testContextCanContainAnything()
- public void testContextExceptionKeyCanBeExceptionOrOtherValues()
Hierarchy
Extends
Methods
public
- getLogger()
- getLogs() — This must return the log messages in order with a simple formatting: "<LOG LEVEL> <MESSAGE>"
- provideLevelsAndMessages()
- testContextCanContainAnything()
- testContextExceptionKeyCanBeExceptionOrOtherValues()
- testContextReplacement()
- testImplements()
- testLogsAtAllLevels()
- testObjectCastToString()
- testThrowsOnInvalidLevel()