!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/multirest.picotech.app/public_html/vendor/bacon/bacon-qr-code/test/Common/   drwxr-xr-x
Free 29.39 GB of 117.98 GB (24.92%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     VersionTest.php (2.26 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
declare(strict_types 1);

namespace 
BaconQrCodeTest\Common;

use 
BaconQrCode\Common\ErrorCorrectionLevel;
use 
BaconQrCode\Common\Version;
use 
PHPUnit\Framework\TestCase;

class 
VersionTest extends TestCase
{
    public function 
versions() : array
    {
        
$array = [];

        for (
$i 1$i <= 40; ++$i) {
            
$array[] = [$i$i 17];
        }

        return 
$array;
    }

    public function 
decodeInformation() : array
    {
        return [
            [
70x07c94],
            [
120x0c762],
            [
170x1145d],
            [
220x168c9],
            [
270x1b08e],
            [
320x209d5],
        ];
    }

    
/**
     * @dataProvider versions
     */
    
public function testVersionForNumber(int $versionNumberint $dimension) : void
    
{
        
$version Version::getVersionForNumber($versionNumber);

        
$this->assertNotNull($version);
        
$this->assertEquals($versionNumber$version->getVersionNumber());
        
$this->assertNotNull($version->getAlignmentPatternCenters());

        if (
$versionNumber 1) {
            
$this->assertTrue(count($version->getAlignmentPatternCenters()) > 0);
        }

        
$this->assertEquals($dimension$version->getDimensionForVersion());
        
$this->assertNotNull($version->getEcBlocksForLevel(ErrorCorrectionLevel::H()));
        
$this->assertNotNull($version->getEcBlocksForLevel(ErrorCorrectionLevel::L()));
        
$this->assertNotNull($version->getEcBlocksForLevel(ErrorCorrectionLevel::M()));
        
$this->assertNotNull($version->getEcBlocksForLevel(ErrorCorrectionLevel::Q()));
        
$this->assertNotNull($version->buildFunctionPattern());
    }

    
/**
     * @dataProvider versions
     */
    
public function testGetProvisionalVersionForDimension(int $versionNumberint $dimension) : void
    
{
        
$this->assertSame(
            
$versionNumber,
            
Version::getProvisionalVersionForDimension($dimension)->getVersionNumber()
        );
    }

    
/**
     * @dataProvider decodeInformation
     */
    
public function testDecodeVersionInformation(int $expectedVersionint $mask) : void
    
{
        
$version Version::decodeVersionInformation($mask);
        
$this->assertNotNull($version);
        
$this->assertSame($expectedVersion$version->getVersionNumber());
    }
}

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