PhpSpreadsheet/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/BitRShiftTest.php

33 lines
823 B
PHP

<?php
namespace PhpOffice\PhpSpreadsheetTests\Calculation\Functions\Engineering;
use PhpOffice\PhpSpreadsheet\Calculation\Engineering;
use PhpOffice\PhpSpreadsheet\Calculation\Functions;
use PHPUnit\Framework\TestCase;
class BitRShiftTest extends TestCase
{
protected function setUp(): void
{
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
}
/**
* @dataProvider providerBITRSHIFT
*
* @param mixed $expectedResult
* @param mixed[] $args
*/
public function testBITRSHIFT($expectedResult, array $args)
{
$result = Engineering::BITRSHIFT(...$args);
$this->assertEquals($expectedResult, $result);
}
public function providerBITRSHIFT()
{
return require 'tests/data/Calculation/Engineering/BITRSHIFT.php';
}
}