Total Complexity | 4 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
7 | class XorTest extends AllSetupTeardown |
||
8 | { |
||
9 | #[\PHPUnit\Framework\Attributes\DataProvider('providerXOR')] |
||
10 | public function testXOR(mixed $expectedResult, mixed ...$args): void |
||
11 | { |
||
12 | $this->runTestCase('XOR', $expectedResult, ...$args); |
||
13 | } |
||
14 | |||
15 | public static function providerXOR(): array |
||
18 | } |
||
19 | |||
20 | #[\PHPUnit\Framework\Attributes\DataProvider('providerXORLiteral')] |
||
21 | public function testXORLiteral(mixed $expectedResult, float|string $formula): void |
||
22 | { |
||
23 | $sheet = $this->getSheet(); |
||
24 | $sheet->getCell('A1')->setValue("=XOR($formula)"); |
||
25 | self::assertSame($expectedResult, $sheet->getCell('A1')->getCalculatedValue()); |
||
26 | } |
||
27 | |||
28 | public static function providerXORLiteral(): array |
||
31 | } |
||
32 | } |
||
33 |