ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
Monolog\TestCase Class Reference
+ Inheritance diagram for Monolog\TestCase:
+ Collaboration diagram for Monolog\TestCase:

Protected Member Functions

 getRecord ($level=Logger::WARNING, $message='test', $context=array())
 
 getMultipleRecords ()
 
 getIdentityFormatter ()
 

Detailed Description

Definition at line 14 of file TestCase.php.

Member Function Documentation

◆ getIdentityFormatter()

◆ getMultipleRecords()

Monolog\TestCase::getMultipleRecords ( )
protected
Returns
array

Definition at line 35 of file TestCase.php.

References array, and DEBUG.

Referenced by Monolog\Handler\MailHandlerTest\testHandleBatch(), Monolog\Handler\HandlerWrapperTest\testHandleBatch(), and Monolog\Handler\RavenHandlerTest\testHandleBatch().

36  {
37  return array(
38  $this->getRecord(Logger::DEBUG, 'debug message 1'),
39  $this->getRecord(Logger::DEBUG, 'debug message 2'),
40  $this->getRecord(Logger::INFO, 'information'),
41  $this->getRecord(Logger::WARNING, 'warning'),
42  $this->getRecord(Logger::ERROR, 'error'),
43  );
44  }
const DEBUG
Detailed debug information.
Definition: Logger.php:32
const ERROR
Runtime errors.
Definition: Logger.php:57
getRecord($level=Logger::WARNING, $message='test', $context=array())
Definition: TestCase.php:19
const WARNING
Exceptional occurrences that are not errors.
Definition: Logger.php:52
Create styles array
The data for the language used.
const INFO
Interesting events.
Definition: Logger.php:39
+ Here is the caller graph for this function:

◆ getRecord()

Monolog\TestCase::getRecord (   $level = Logger::WARNING,
  $message = 'test',
  $context = array() 
)
protected
Returns
array Record

Definition at line 19 of file TestCase.php.

References $message, and array.

Referenced by Monolog\Handler\BrowserConsoleHandlerTest\testAutolabel(), Monolog\Handler\FingersCrossedHandlerTest\testChannelLevelActivationStrategy(), Monolog\Handler\FingersCrossedHandlerTest\testChannelLevelActivationStrategyWithPsrLevels(), Monolog\Handler\StreamHandlerTest\testClose(), Monolog\Handler\FirePHPHandlerTest\testConcurrentHandlers(), Monolog\Handler\ChromePHPHandlerTest\testConcurrentHandlers(), Monolog\Handler\BrowserConsoleHandlerTest\testConcurrentHandlers(), Monolog\Handler\ElasticSearchHandlerTest\testConnectionErrors(), Monolog\Handler\BrowserConsoleHandlerTest\testContext(), Monolog\Handler\GelfHandlerTest\testDebug(), Monolog\Handler\GelfHandlerLegacyTest\testDebug(), Monolog\Handler\RavenHandlerTest\testDebug(), Monolog\Handler\FingersCrossedHandlerTest\testErrorLevelActivationStrategy(), Monolog\Handler\FingersCrossedHandlerTest\testErrorLevelActivationStrategyWithPsrLevel(), Monolog\Handler\BrowserConsoleHandlerTest\testEscaping(), Monolog\Handler\RavenHandlerTest\testException(), Monolog\Handler\RavenHandlerTest\testExtraParameters(), Monolog\Handler\RavenHandlerTest\testFingerprint(), Monolog\Handler\BufferHandlerTest\testFlush(), Monolog\Handler\DeduplicationHandlerTest\testFlushPassthruIfAllRecordsUnderTrigger(), Monolog\Handler\DeduplicationHandlerTest\testFlushPassthruIfEmptyLog(), Monolog\Handler\DeduplicationHandlerTest\testFlushPassthruIfLogTooOld(), Monolog\Handler\DeduplicationHandlerTest\testFlushSkipsIfLogExists(), Monolog\Formatter\FlowdockFormatterTest\testFormat(), Monolog\Formatter\LogglyFormatterTest\testFormat(), Monolog\Formatter\FluentdFormatterTest\testFormat(), Monolog\Formatter\JsonFormatterTest\testFormat(), Monolog\Formatter\FlowdockFormatterTest\testFormatBatch(), Monolog\Formatter\JsonFormatterTest\testFormatBatch(), Monolog\Formatter\JsonFormatterTest\testFormatBatchNewlines(), Monolog\Formatter\FluentdFormatterTest\testFormatWithTag(), Monolog\Handler\DeduplicationHandlerTest\testGcOldLogs(), Monolog\Handler\CouchDBHandlerTest\testHandle(), Monolog\Handler\SamplingHandlerTest\testHandle(), Monolog\Handler\DoctrineCouchDBHandlerTest\testHandle(), Monolog\Handler\MongoDBHandlerTest\testHandle(), Monolog\Handler\GroupHandlerTest\testHandle(), Monolog\Handler\WhatFailureGroupHandlerTest\testHandle(), Monolog\Handler\DynamoDbHandlerTest\testHandle(), Monolog\Handler\MailHandlerTest\testHandle(), Monolog\Handler\HandlerWrapperTest\testHandle(), Monolog\Handler\AmqpHandlerTest\testHandleAmqpExt(), Monolog\Handler\AbstractHandlerTest\testHandleBatch(), Monolog\Handler\GroupHandlerTest\testHandleBatch(), Monolog\Handler\WhatFailureGroupHandlerTest\testHandleBatch(), Monolog\Handler\RavenHandlerTest\testHandleBatch(), Monolog\Handler\RavenHandlerTest\testHandleBatchDoNothingIfRecordsAreBelowLevel(), Monolog\Handler\MailHandlerTest\testHandleBatchNotSendsMailIfMessagesAreBelowLevel(), Monolog\Handler\GroupHandlerTest\testHandleBatchUsesProcessors(), Monolog\Handler\BufferHandlerTest\testHandleBufferLimit(), Monolog\Handler\FingersCrossedHandlerTest\testHandleBufferLimit(), Monolog\Handler\BufferHandlerTest\testHandleBufferLimitWithFlushOnOverflow(), Monolog\Handler\BufferHandlerTest\testHandleBuffers(), Monolog\Handler\FingersCrossedHandlerTest\testHandleBuffers(), Monolog\Handler\WhatFailureGroupHandlerTest\testHandleException(), Monolog\Handler\BufferHandlerTest\testHandleLevel(), Monolog\Handler\AmqpHandlerTest\testHandlePhpAmqpLib(), Monolog\Handler\FilterHandlerTest\testHandleProcessOnlyNeededLevels(), Monolog\Handler\TestHandlerTest\testHandler(), Monolog\Handler\FingersCrossedHandlerTest\testHandleRestartBufferingAfterBeingTriggeredWhenStopBufferingIsDisabled(), Monolog\Handler\FingersCrossedHandlerTest\testHandleRestartBufferingAfterReset(), Monolog\Handler\FingersCrossedHandlerTest\testHandleStopsBufferingAfterTrigger(), Monolog\Handler\GroupHandlerTest\testHandleUsesProcessors(), Monolog\Handler\WhatFailureGroupHandlerTest\testHandleUsesProcessors(), Monolog\Handler\FilterHandlerTest\testHandleUsesProcessors(), Monolog\Handler\BufferHandlerTest\testHandleUsesProcessors(), Monolog\Handler\FingersCrossedHandlerTest\testHandleUsesProcessors(), Monolog\Handler\FingersCrossedHandlerTest\testHandleWithBadCallbackThrowsException(), Monolog\Handler\FilterHandlerTest\testHandleWithBadCallbackThrowsException(), Monolog\Handler\FingersCrossedHandlerTest\testHandleWithCallback(), Monolog\Handler\FilterHandlerTest\testHandleWithCallback(), Monolog\Handler\ChromePHPHandlerTest\testHeaders(), Monolog\Handler\FirePHPHandlerTest\testHeaders(), Monolog\Handler\ChromePHPHandlerTest\testHeadersOverflow(), Monolog\Handler\GelfHandlerLegacyTest\testInjectedGelfMessageFormatter(), Monolog\Handler\GelfHandlerTest\testInjectedGelfMessageFormatter(), Monolog\Handler\HandlerWrapperTest\testIsHandling(), Monolog\Handler\SwiftMailerHandlerTest\testMessageCanBeCustomizedGivenLoggedData(), Monolog\Handler\SwiftMailerHandlerTest\testMessageCreationIsLazyWhenUsingCallback(), Monolog\Handler\SwiftMailerHandlerTest\testMessageSubjectFormatting(), Monolog\Handler\NativeMailerHandlerTest\testMessageSubjectFormatting(), Monolog\Handler\FingersCrossedHandlerTest\testOverrideActivationStrategy(), Monolog\Handler\FingersCrossedHandlerTest\testPassthruOnClose(), Monolog\Handler\RedisHandlerTest\testPredisHandle(), Monolog\Handler\RedisHandlerTest\testPredisHandleCapped(), Monolog\Processor\WebProcessorTest\testProcessor(), Monolog\Processor\GitProcessorTest\testProcessor(), Monolog\Processor\ProcessIdProcessorTest\testProcessor(), Monolog\Processor\TagProcessorTest\testProcessor(), Monolog\Processor\UidProcessorTest\testProcessor(), Monolog\Processor\MemoryPeakUsageProcessorTest\testProcessor(), Monolog\Processor\MemoryUsageProcessorTest\testProcessor(), Monolog\Processor\WebProcessorTest\testProcessorAddsOnlyRequestedExtraFields(), Monolog\Processor\WebProcessorTest\testProcessorConfiguringOfExtraFields(), Monolog\Processor\WebProcessorTest\testProcessorDoesNotAddUniqueIdIfNotPresent(), Monolog\Processor\WebProcessorTest\testProcessorDoNothingIfNoRequestUri(), Monolog\Processor\WebProcessorTest\testProcessorReturnNullIfNoHttpReferer(), Monolog\Processor\TagProcessorTest\testProcessorTagModification(), Monolog\Processor\MemoryUsageProcessorTest\testProcessorWithoutFormatting(), Monolog\Processor\MemoryPeakUsageProcessorTest\testProcessorWithoutFormatting(), Monolog\Handler\AbstractProcessingHandlerTest\testProcessRecord(), Monolog\Handler\BufferHandlerTest\testPropagatesRecordsAtEndOfRequest(), Monolog\Handler\FingersCrossedHandlerTest\testPsrLevelPassthruOnClose(), Monolog\Handler\RedisHandlerTest\testRedisHandle(), Monolog\Handler\RedisHandlerTest\testRedisHandleCapped(), Monolog\Handler\RavenHandlerTest\testRelease(), Monolog\Handler\RotatingFileHandlerTest\testReuseCurrentFile(), Monolog\Handler\HipChatHandlerTest\testRoomSpaces(), Monolog\Handler\RotatingFileHandlerTest\testRotation(), Monolog\Handler\RotatingFileHandlerTest\testRotationCreatesNewFile(), Monolog\Handler\NativeMailerHandlerTest\testSend(), Monolog\Handler\ErrorLogHandlerTest\testShouldLogMessagesUsingErrorLogFuncion(), Monolog\Handler\BrowserConsoleHandlerTest\testStyling(), Monolog\Handler\RavenHandlerTest\testTag(), Monolog\Handler\NewRelicHandlerTest\testTheAppNameCanBeInjectedFromtheConstructor(), Monolog\Handler\NewRelicHandlerTest\testTheAppNameCanBeOverriddenFromEachLog(), Monolog\Handler\NewRelicHandlerTest\testTheAppNameIsNullByDefault(), Monolog\Handler\NewRelicHandlerTest\testThehandlerCanAddContextParamsToTheNewRelicTrace(), Monolog\Handler\NewRelicHandlerTest\testThehandlerCanAddExplodedContextParamsToTheNewRelicTrace(), Monolog\Handler\NewRelicHandlerTest\testThehandlerCanAddExplodedExtraParamsToTheNewRelicTrace(), Monolog\Handler\NewRelicHandlerTest\testThehandlerCanAddExtraContextAndParamsToTheNewRelicTrace(), Monolog\Handler\NewRelicHandlerTest\testThehandlerCanAddExtraParamsToTheNewRelicTrace(), Monolog\Handler\NewRelicHandlerTest\testThehandlerCanHandleTheRecord(), Monolog\Handler\NewRelicHandlerTest\testThehandlerCanHandleTheRecordsFormattedUsingTheLineFormatter(), Monolog\Handler\NewRelicHandlerTest\testThehandlerThrowsAnExceptionIfTheNRExtensionIsNotLoaded(), Monolog\Handler\NewRelicHandlerTest\testTheTransactionNameCanBeInjectedFromTheConstructor(), Monolog\Handler\NewRelicHandlerTest\testTheTransactionNameCanBeOverriddenFromEachLog(), Monolog\Handler\NewRelicHandlerTest\testTheTransactionNameIsNullByDefault(), Monolog\Handler\RavenHandlerTest\testUserContext(), Monolog\Handler\RavenHandlerTest\testWarning(), Monolog\Handler\GelfHandlerLegacyTest\testWarning(), Monolog\Handler\GelfHandlerTest\testWarning(), Monolog\Handler\StreamHandlerTest\testWrite(), Monolog\Handler\ZendMonitorHandlerTest\testWrite(), Monolog\Handler\LogEntriesHandlerTest\testWriteBatchContent(), Monolog\Handler\LogEntriesHandlerTest\testWriteContent(), Monolog\Handler\SlackHandlerTest\testWriteContent(), Monolog\Handler\SlackHandlerTest\testWriteContentUsesFormatterIfProvided(), Monolog\Handler\HipChatHandlerTest\testWriteContentV1WithoutName(), Monolog\Handler\HipChatHandlerTest\testWriteContentV2WithoutName(), Monolog\Handler\SlackHandlerTest\testWriteContentWithColors(), Monolog\Handler\SlackHandlerTest\testWriteContentWithEmoji(), Monolog\Handler\SlackHandlerTest\testWriteContentWithPlainTextMessage(), Monolog\Handler\StreamHandlerTest\testWriteCreatesTheStreamResource(), Monolog\Handler\HipChatHandlerTest\testWriteCustomHostHeader(), Monolog\Handler\HipChatHandlerTest\testWriteHeader(), Monolog\Handler\PushoverHandlerTest\testWriteHeader(), Monolog\Handler\SlackHandlerTest\testWriteHeader(), Monolog\Handler\FlowdockHandlerTest\testWriteHeader(), Monolog\Handler\StreamHandlerTest\testWriteInvalidResource(), Monolog\Handler\StreamHandlerTest\testWriteLocking(), Monolog\Handler\StreamHandlerTest\testWriteMissingResource(), Monolog\Handler\StreamHandlerTest\testWriteNonExistingAndNotCreatableFileResource(), Monolog\Handler\StreamHandlerTest\testWriteNonExistingAndNotCreatablePath(), Monolog\Handler\StreamHandlerTest\testWriteNonExistingFileResource(), Monolog\Handler\StreamHandlerTest\testWriteNonExistingPath(), Monolog\Handler\StreamHandlerTest\testWriteNonExistingResource(), Monolog\Handler\PushoverHandlerTest\testWriteToMultipleUsers(), Monolog\Handler\HipChatHandlerTest\testWriteTruncatesLongMessage(), Monolog\Handler\HipChatHandlerTest\testWriteV2(), Monolog\Handler\HipChatHandlerTest\testWriteV2Notify(), Monolog\Handler\PushoverHandlerTest\testWriteWithComplexMessage(), Monolog\Handler\HipChatHandlerTest\testWriteWithComplexMessage(), Monolog\Handler\PushoverHandlerTest\testWriteWithComplexTitle(), Monolog\Handler\PushoverHandlerTest\testWriteWithEmergencyPriority(), Monolog\Handler\HipChatHandlerTest\testWriteWithErrorLevelsAndColors(), Monolog\Handler\PushoverHandlerTest\testWriteWithHighPriority(), Monolog\Handler\PushoverHandlerTest\testWriteWithTooLongMessage(), and Monolog\Handler\SocketHandlerTest\writeRecord().

20  {
21  return array(
22  'message' => $message,
23  'context' => $context,
24  'level' => $level,
25  'level_name' => Logger::getLevelName($level),
26  'channel' => 'test',
27  'datetime' => \DateTime::createFromFormat('U.u', sprintf('%.6F', microtime(true))),
28  'extra' => array(),
29  );
30  }
catch(Exception $e) $message
Create styles array
The data for the language used.
static getLevelName($level)
Gets the name of the logging level.
Definition: Logger.php:458
+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: