0byt3m1n1
Path:
/
home
/
mgatv524
/
apv.mgaplay.com.br
/
vendor
/
ircmaxell
/
security-lib
/
test
/
Unit
/
Core
/
BigMath
/
[
Home
]
File: GMPTest.php
<?php require_once __DIR__ . '/../BigMathTest.php'; class Unit_Core_BigMath_GMPTest extends Unit_Core_BigMathTest { protected static $mathImplementations = array(); protected function setUp() { if (!extension_loaded('gmp')) { $this->markTestSkipped('BCMath is not loaded'); } } /** * @dataProvider provideAddTest */ public function testAdd($left, $right, $expected) { $obj = new \SecurityLib\BigMath\GMP; $this->assertEquals($expected, $obj->add($left, $right)); } /** * @dataProvider provideSubtractTest */ public function testSubtract($left, $right, $expected) { $obj = new \SecurityLib\BigMath\GMP; $this->assertEquals($expected, $obj->subtract($left, $right)); } }