mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-08-30 20:18:00 +00:00
One More Test
This commit is contained in:
@@ -39,6 +39,13 @@ class CustomFunctionTest extends TestCase
|
||||
self::assertTrue(Calculation::addFunction($key, $value));
|
||||
self::assertSame(1.0, $calculation->calculateFormula('=NATIVECOS(0)'));
|
||||
self::assertTrue(Calculation::removeFunction($key));
|
||||
$key = 'PI';
|
||||
$value = [
|
||||
'category' => 'custom',
|
||||
'functionCall' => 'pi',
|
||||
'argumentCount' => '0',
|
||||
];
|
||||
self::assertFalse(Calculation::addFunction($key, $value));
|
||||
}
|
||||
|
||||
public static function testReplaceDummyFunction(): void
|
||||
|
||||
Reference in New Issue
Block a user