Overview

Namespaces

  • AloFramework
    • Log
  • PHP
  • Psr
    • Log
      • Test

Classes

  • DummyTest
  • LoggerInterfaceTest
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo

Class 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

PHPUnit_Framework_TestCase
Extended by Psr\Log\Test\LoggerInterfaceTest
Abstract
Namespace: Psr\Log\Test
Located at log/Psr/Log/Test/LoggerInterfaceTest.php
Methods summary
abstract public LoggerInterface
# getLogger( )

Returns

LoggerInterface
abstract public string[]
# getLogs( )

This must return the log messages in order with a simple formatting: " "

This must return the log messages in order with a simple formatting: " "

Example ->error('Foo') would yield "error Foo"

Returns

string[]
public
# testImplements( )
public
# testLogsAtAllLevels( $level, $message )

Dataprovider

provideLevelsAndMessages
public
# provideLevelsAndMessages( )
public
# testThrowsOnInvalidLevel( )

Expectedexception

Psr\Log\InvalidArgumentException
public
# testContextReplacement( )
public
# testObjectCastToString( )
public
# testContextCanContainAnything( )
public
# testContextExceptionKeyCanBeExceptionOrOtherValues( )
AloFramework Logger API documentation generated by ApiGen