ILIAS  release_7 Revision v7.30-3-g800a261c036
ilMathBCAdapterTest.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2017 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4require_once 'Services/Math/test/ilMathBaseAdapterTest.php';
5
11{
15 public function setUp() : void
16 {
17 if (!extension_loaded('bcmath')) {
18 $this->markTestSkipped('Could not execute test due to missing bcmath extension!');
19 return;
20 }
21
22 require_once 'Services/Math/classes/class.ilMathBCMathAdapter.php';
23 $this->mathAdapter = new ilMathBCMathAdapter();
24 parent::setUp();
25 }
26
30 public function powData()
31 {
32 return array_merge([
33 ['2', '64', '18446744073709551616', null],
34 ], parent::powData());
35 }
36}
An exception for terminatinating execution or to throw for unit testing.
Class ilMathBCMathAdapter.