mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-08-22 06:43:57 +00:00
3878e325f1
This isn't a perfect implementation yet: but it's enough to take a look at the memory usage and speed.
14 lines
334 B
PHP
14 lines
334 B
PHP
<?php
|
|
|
|
namespace PhpOffice\PhpSpreadsheetTests\Calculation\Functions\MathTrig;
|
|
|
|
class PiTest extends AllSetupTeardown
|
|
{
|
|
public function testPI(): void
|
|
{
|
|
$sheet = $this->getSheet();
|
|
$sheet->getCell('A1')->setValue('=PI()');
|
|
self::assertEquals(M_PI, $sheet->getCell('A1')->getCalculatedValue());
|
|
}
|
|
}
|