Changes for Scrutinizer
Two changes to fix minor problems reported by Scrutinizer.
This commit is contained in:
parent
1a0aab1a4f
commit
6b4feb6142
|
@ -137,12 +137,10 @@ class DefinedNameTest extends TestCase
|
|||
|
||||
$namedRange = $this->spreadsheet->getDefinedName('XYZ');
|
||||
self::assertInstanceOf(NamedRange::class, $namedRange);
|
||||
if ($namedRange instanceof NamedRange) {
|
||||
self::assertEquals('A1', $namedRange->getRange());
|
||||
self::assertEquals('A1', $namedRange->getValue());
|
||||
$namedRange->setRange('A2');
|
||||
self::assertEquals('A2', $namedRange->getValue());
|
||||
}
|
||||
self::assertEquals('A1', $namedRange->getRange());
|
||||
self::assertEquals('A1', $namedRange->getValue());
|
||||
$namedRange->setRange('A2');
|
||||
self::assertEquals('A2', $namedRange->getValue());
|
||||
}
|
||||
|
||||
public function testChangeWorksheet(): void
|
||||
|
|
|
@ -200,6 +200,6 @@ class IOFactoryTest extends TestCase
|
|||
{
|
||||
$this->expectException(\PhpOffice\PhpSpreadsheet\Reader\Exception::class);
|
||||
$filename = __FILE__;
|
||||
$reader = IOFactory::createReaderForFile($filename);
|
||||
IOFactory::createReaderForFile($filename);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue