From 5e657b296a2d570577e1ff328cfb443d9886d717 Mon Sep 17 00:00:00 2001 From: MarkBaker Date: Thu, 20 May 2021 22:50:46 +0200 Subject: [PATCH] Eliminate spurious test that I managed to introduce by accident (related to a different issue) --- tests/PhpSpreadsheetTests/Style/FontTest.php | 23 -------------------- 1 file changed, 23 deletions(-) diff --git a/tests/PhpSpreadsheetTests/Style/FontTest.php b/tests/PhpSpreadsheetTests/Style/FontTest.php index 9504e33e..c014a4b6 100644 --- a/tests/PhpSpreadsheetTests/Style/FontTest.php +++ b/tests/PhpSpreadsheetTests/Style/FontTest.php @@ -7,29 +7,6 @@ use PHPUnit\Framework\TestCase; class FontTest extends TestCase { - public function testSize(): void - { - $spreadsheet = new Spreadsheet(); - $sheet = $spreadsheet->getActiveSheet(); - $cell = $sheet->getCell('A1'); - $cell->setValue('Cell A1'); - $font = $cell->getStyle()->getFont(); - - $font->setSize(15); - self::assertSame(15, $font->getSize(), 'Set to 15'); - - $font->setSize(''); - self::assertSame(10, $font->getSize(), 'Should be the default 10'); - - $font->setSize(14); - $font->setSize(0); - self::assertSame(10, $font->getSize(), 'Should be the default 10'); - - $font->setSize(13); - $font->setSize(-1); - self::assertSame(13, $font->getSize(), 'Should still be 13'); - } - public function testSuperSubScript(): void { $spreadsheet = new Spreadsheet();