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

33 lines
799 B
PHP
Raw Normal View History

<?php
namespace PhpOffice\PhpSpreadsheetTests\Calculation\Functions\Engineering;
use PhpOffice\PhpSpreadsheet\Calculation\Engineering;
use PhpOffice\PhpSpreadsheet\Calculation\Functions;
use PHPUnit\Framework\TestCase;
class BitOrTest extends TestCase
{
2020-04-27 10:28:36 +00:00
protected function setUp(): void
{
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
}
/**
* @dataProvider providerBITOR
*
* @param mixed $expectedResult
* @param mixed[] $args
*/
public function testBITOR($expectedResult, array $args)
{
$result = Engineering::BITOR(...$args);
$this->assertEquals($expectedResult, $result);
}
public function providerBITOR()
{
return require 'tests/data/Calculation/Engineering/BITOR.php';
}
}