!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-163-generic #173-Ubuntu SMP Tue Oct 14 17:51:00 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/backup/vendor/phenx/php-svg-lib/tests/Svg/   drwxr-xr-x
Free 23.66 GB of 117.98 GB (20.06%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     StyleTest.php (1.88 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * Created by PhpStorm.
 * User: Fabien
 * Date: 13/04/14
 * Time: 17:42
 */

namespace Svg\Tests;

use 
Svg\Style;
use 
PHPUnit\Framework\TestCase;

class 
StyleTest extends TestCase
{

    public function 
test_parseColor()
    {
        
$this->assertEquals("none"Style::parseColor("none"));
        
$this->assertEquals(array(25500), Style::parseColor("RED"));
        
$this->assertEquals(array(00255), Style::parseColor("blue"));
        
$this->assertEquals(nullStyle::parseColor("foo"));
        
$this->assertEquals(array(000), Style::parseColor("black"));
        
$this->assertEquals(array(255255255), Style::parseColor("white"));
        
$this->assertEquals(array(000), Style::parseColor("#000000"));
        
$this->assertEquals(array(255255255), Style::parseColor("#ffffff"));
        
$this->assertEquals(array(000), Style::parseColor("rgb(0,0,0)"));
        
$this->assertEquals(array(255255255), Style::parseColor("rgb(255,255,255)"));
        
$this->assertEquals(array(000), Style::parseColor("rgb(0, 0, 0)"));
        
$this->assertEquals(array(255255255), Style::parseColor("rgb(255, 255, 255)"));
    }

    public function 
test_fromAttributes()
    {
        
$style = new Style();

        
$attributes = array(
            
"color" => "blue",
            
"fill" => "#fff",
            
"stroke" => "none",
        );

        
$style->fromAttributes($attributes);

        
$this->assertEquals(array(00255), $style->color);
        
$this->assertEquals(array(255255255), $style->fill);
        
$this->assertEquals("none"$style->stroke);
    }

    public function 
test_convertSize()
    {
        
$this->assertEquals(1Style::convertSize(1));
        
$this->assertEquals(10Style::convertSize("10px")); // FIXME
        
$this->assertEquals(10Style::convertSize("10pt"));
        
$this->assertEquals(8Style::convertSize("80%"1072));
    }

}
 

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