Kernel : Linux vmw02p.internet-indee.net 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Tue Nov 16 14:42:35 UTC 2021 x86_64
Disable function : NONE
Safe mode : OFF
Host : firofichi.it | Server ip : 5.196.164.15 | Your ip : 3.144.28.245 | Time @ Server : 19 Oct 2024 07:10:55
MySQL : OFF | MSSQL : OFF | cURL : ON | Oracle : OFF | wget : ON | Perl : ON

/home/webmaster/firofichi/www/vendor/consolidation/log/tests/

HOME about upload exec mass file domain root vuln newfile newfolder kill me

File Path : /home/webmaster/firofichi/www/vendor/consolidation/log/tests/LoggerManagerTests.php

<?php namespace Consolidation\Log; use Symfony\Component\Console\Output\BufferedOutput; use Symfony\Component\Console\Output\OutputInterface; use PHPUnit\Framework\TestCase; class LoggerManagerTests extends TestCase { protected $output; protected $logger; function testLoggerManager() { $fallbackOutput = new BufferedOutput(); $fallbackOutput->setVerbosity(OutputInterface::VERBOSITY_DEBUG); $fallbackLogger = new Logger($fallbackOutput); $fallbackLogger->notice('This is the fallback logger'); $primaryOutput = new BufferedOutput(); $primaryOutput->setVerbosity(OutputInterface::VERBOSITY_DEBUG); $primaryLogger = new Logger($primaryOutput); $primaryLogger->notice('This is the primary logger'); $replacementOutput = new BufferedOutput(); $replacementOutput->setVerbosity(OutputInterface::VERBOSITY_DEBUG); $replacementLogger = new Logger($replacementOutput); $replacementLogger->notice('This is the replacement logger'); $logger = new LoggerManager(); $logger->notice('Uninitialized logger.'); $logger->fallbackLogger($fallbackLogger); $logger->notice('Logger with fallback.'); $logger->add('default', $primaryLogger); $logger->notice('Primary logger'); $logger->add('default', $replacementLogger); $logger->notice('Replaced logger'); $logger->reset(); $logger->notice('Reset loggers'); $fallbackActual = rtrim($fallbackOutput->fetch()); $primaryActual = rtrim($primaryOutput->fetch()); $replacementActual = rtrim($replacementOutput->fetch()); $actual = "Fallback:\n====\n$fallbackActual\nPrimary:\n====\n$primaryActual\nReplacement:\n====\n$replacementActual"; $actual = preg_replace('# *$#ms', '', $actual); $actual = preg_replace('#^ *$\n#ms', '', $actual); $expected = <<< __EOT__ Fallback: ==== ! [NOTE] This is the fallback logger ! [NOTE] Logger with fallback. ! [NOTE] Reset loggers Primary: ==== ! [NOTE] This is the primary logger ! [NOTE] Primary logger Replacement: ==== ! [NOTE] This is the replacement logger ! [NOTE] Replaced logger __EOT__; $this->assertEquals($expected, $actual); } }