mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-18 03:05:11 +00:00
fixup! TestCase for BadConfigurationException in BigInteger
This commit is contained in:
parent
e598a027b8
commit
d71b6ae3e7
@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
use phpseclib\Math\BigInteger;
|
||||
use phpseclib\Math\BigInteger\Engines\BCMath;
|
||||
use phpseclib\Math\BigInteger\Engines\GMP;
|
||||
@ -57,14 +58,16 @@ ENGINE
|
||||
* @dataProvider provideBadConfigurationException
|
||||
* @preserveGlobalState disabled
|
||||
* @runInSeparateProcess mocks must not disturb other tests
|
||||
* @param string $expectedEngineClass
|
||||
* @param array[] ...$engines
|
||||
*/
|
||||
public function testBadConfigurationException($expectedClass, ...$engines) {
|
||||
public function testBadConfigurationException($expectedEngineClass, array ...$engines) {
|
||||
foreach ($engines as $engine) {
|
||||
static::mockEngine($engine[0], $engine[1]);
|
||||
}
|
||||
|
||||
$bigint = new BigInteger();
|
||||
|
||||
static::assertSame($expectedClass, $bigint->toString());
|
||||
static::assertSame($expectedEngineClass, $bigint->toString());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user