!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache/2.2.22 (Debian). PHP/5.6.36 

uname -a: Linux h05.hvosting.ua 4.9.110-amd64 #3 SMP Sun Nov 4 16:27:09 UTC 2018 x86_64 

uid=1389(h33678) gid=1099(h33678) groups=1099(h33678),502(mgrsecure) 

Safe-mode: OFF (not secure)

/home/h33678/data/www/it-man.ztu.edu.ua/src/vendor/monolog/monolog/tests/Monolog/Formatter/   drwxr-xr-x
Free 116.58 GB of 200.55 GB (58.13%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     FluentdFormatterTest.php (1.73 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/*
 * This file is part of the Monolog package.
 *
 * (c) Jordi Boggiano <j.boggiano@seld.be>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Monolog\Formatter;

use 
Monolog\Logger;
use 
Monolog\TestCase;

class 
FluentdFormatterTest extends TestCase
{
    
/**
     * @covers Monolog\Formatter\FluentdFormatter::__construct
     * @covers Monolog\Formatter\FluentdFormatter::isUsingLevelsInTag
     */
    
public function testConstruct()
    {
        
$formatter = new FluentdFormatter();
        
$this->assertEquals(false$formatter->isUsingLevelsInTag());
        
$formatter = new FluentdFormatter(false);
        
$this->assertEquals(false$formatter->isUsingLevelsInTag());
        
$formatter = new FluentdFormatter(true);
        
$this->assertEquals(true$formatter->isUsingLevelsInTag());
    }

    
/**
     * @covers Monolog\Formatter\FluentdFormatter::format
     */
    
public function testFormat()
    {
        
$record $this->getRecord(Logger::WARNING);
        
$record['datetime'] = new \DateTime("@0");

        
$formatter = new FluentdFormatter();
        
$this->assertEquals(
            
'["test",0,{"message":"test","extra":[],"level":300,"level_name":"WARNING"}]',
            
$formatter->format($record)
        );
    }

    
/**
     * @covers Monolog\Formatter\FluentdFormatter::format
     */
    
public function testFormatWithTag()
    {
        
$record $this->getRecord(Logger::ERROR);
        
$record['datetime'] = new \DateTime("@0");

        
$formatter = new FluentdFormatter(true);
        
$this->assertEquals(
            
'["test.error",0,{"message":"test","extra":[]}]',
            
$formatter->format($record)
        );
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by PinoyWH1Z | C99Shell Github | Generation time: 0.0439 ]--