Eliminate redundant assignment

This commit is contained in:
MarkBaker
2022-11-23 03:38:56 +01:00
parent a3187a3d3e
commit 717ec4f73a
@@ -278,7 +278,7 @@ class SpreadsheetTest extends TestCase
public function testNotSerializable(): void
{
$this->spreadsheet = $spreadsheet = new Spreadsheet();
$this->spreadsheet = new Spreadsheet();
$this->expectException(Exception::class);
$this->expectExceptionMessage('Spreadsheet objects cannot be serialized');
@@ -287,7 +287,7 @@ class SpreadsheetTest extends TestCase
public function testNotJsonEncodable(): void
{
$this->spreadsheet = $spreadsheet = new Spreadsheet();
$this->spreadsheet = new Spreadsheet();
$this->expectException(Exception::class);
$this->expectExceptionMessage('Spreadsheet objects cannot be json encoded');