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

33 lines
805 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 BitXorTest extends TestCase
{
2020-04-27 10:28:36 +00:00
protected function setUp(): void
{
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
}
/**
* @dataProvider providerBITXOR
*
* @param mixed $expectedResult
* @param mixed[] $args
*/
public function testBITXOR($expectedResult, array $args)
{
$result = Engineering::BITXOR(...$args);
$this->assertEquals($expectedResult, $result);
}
public function providerBITXOR()
{
return require 'tests/data/Calculation/Engineering/BITXOR.php';
}
}