예제 #1
0
 /**
  * @covers ::getScale
  */
 public function testGetScale()
 {
     BC::scale(null);
     $this->assertEquals(ini_get('bcmath.scale'), BC::getScale(null));
     $this->assertEquals(17, BC::getScale(17));
     BC::scale(63);
     $this->assertEquals(63, BC::getScale(null));
     $this->assertEquals(17, BC::getScale(17));
     BC::scale(null);
     $this->assertEquals(ini_get('bcmath.scale'), BC::getScale(null));
     $this->assertEquals(17, BC::getScale(17));
 }