You are here

public function LoggerInterfaceTest::provideLevelsAndMessages in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/psr/log/Psr/Log/Test/LoggerInterfaceTest.php \Psr\Log\Test\LoggerInterfaceTest::provideLevelsAndMessages()

File

vendor/psr/log/Psr/Log/Test/LoggerInterfaceTest.php, line 49

Class

LoggerInterfaceTest
Provides a base test class for ensuring compliance with the LoggerInterface

Namespace

Psr\Log\Test

Code

public function provideLevelsAndMessages() {
  return array(
    LogLevel::EMERGENCY => array(
      LogLevel::EMERGENCY,
      'message of level emergency with context: {user}',
    ),
    LogLevel::ALERT => array(
      LogLevel::ALERT,
      'message of level alert with context: {user}',
    ),
    LogLevel::CRITICAL => array(
      LogLevel::CRITICAL,
      'message of level critical with context: {user}',
    ),
    LogLevel::ERROR => array(
      LogLevel::ERROR,
      'message of level error with context: {user}',
    ),
    LogLevel::WARNING => array(
      LogLevel::WARNING,
      'message of level warning with context: {user}',
    ),
    LogLevel::NOTICE => array(
      LogLevel::NOTICE,
      'message of level notice with context: {user}',
    ),
    LogLevel::INFO => array(
      LogLevel::INFO,
      'message of level info with context: {user}',
    ),
    LogLevel::DEBUG => array(
      LogLevel::DEBUG,
      'message of level debug with context: {user}',
    ),
  );
}