Passed
Push — master ( 74dca3...bb3d5f )
by
unknown
23:51 queued 13:47
created

MyXlsxTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 6
dl 0
loc 10
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A testCustomSpreadsheetCustomLoader() 0 8 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace PhpOffice\PhpSpreadsheetTests\Reader\Xlsx;
6
7
use PHPUnit\Framework\TestCase;
8
9
class MyXlsxTest extends TestCase
10
{
11
    public function testCustomSpreadsheetCustomLoader(): void
12
    {
13
        $reader = new MyXlsxReader();
14
        $infile = 'tests/data/Reader/XLSX/colorscale.xlsx';
15
        /** @var MySpreadsheet */
16
        $mySpreadsheet = $reader->load($infile);
17
        self::assertSame(64, $mySpreadsheet->calcSquare('A3'));
18
        $mySpreadsheet->disconnectWorksheets();
19
    }
20
}
21