2017-06-25 11:02:54 -05:00
|
|
|
<?php
|
2022-02-16 20:25:59 -06:00
|
|
|
|
2017-06-25 11:02:54 -05:00
|
|
|
/**
|
|
|
|
* @author Andreas Fischer <bantu@phpbb.com>
|
|
|
|
* @copyright 2013 Andreas Fischer
|
|
|
|
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
|
|
|
*/
|
|
|
|
|
2022-06-04 10:31:21 -05:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
2022-02-22 20:48:51 -06:00
|
|
|
namespace phpseclib3\Tests\Unit\Math\BigInteger;
|
|
|
|
|
2022-01-30 09:34:42 -06:00
|
|
|
use phpseclib3\Math\BigInteger;
|
2017-06-25 11:02:54 -05:00
|
|
|
|
2022-02-22 20:48:51 -06:00
|
|
|
class DefaultTest extends TestCase
|
2017-06-25 11:02:54 -05:00
|
|
|
{
|
2022-06-04 10:31:21 -05:00
|
|
|
public function getInstance($x = 0, $base = 10): BigInteger
|
2017-06-25 11:02:54 -05:00
|
|
|
{
|
|
|
|
return new BigInteger($x, $base);
|
|
|
|
}
|
|
|
|
|
2022-06-04 10:31:21 -05:00
|
|
|
public static function getStaticClass(): string
|
2017-06-25 11:02:54 -05:00
|
|
|
{
|
2019-11-06 23:41:40 -06:00
|
|
|
return 'phpseclib3\Math\BigInteger';
|
2017-06-25 11:02:54 -05:00
|
|
|
}
|
|
|
|
}
|