From 738ea30f356262c2105c5d4e1e4e688ff4df96ee Mon Sep 17 00:00:00 2001 From: madflow Date: Mon, 8 Oct 2018 08:34:44 +0200 Subject: [PATCH] use expectNotToPerformAssertions --- tests/Spout/Common/Entity/Style/BorderTest.php | 2 +- tests/Spout/Writer/CSV/WriterTest.php | 2 +- tests/Spout/Writer/Common/Entity/SheetTest.php | 4 ++-- tests/Spout/Writer/ODS/WriterTest.php | 2 +- tests/Spout/Writer/XLSX/WriterTest.php | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/Spout/Common/Entity/Style/BorderTest.php b/tests/Spout/Common/Entity/Style/BorderTest.php index ef8b5b8..fa1e7ef 100644 --- a/tests/Spout/Common/Entity/Style/BorderTest.php +++ b/tests/Spout/Common/Entity/Style/BorderTest.php @@ -22,7 +22,7 @@ class BorderTest extends TestCase $withConstructorParams = new Border([ new BorderPart(Border::LEFT), ]); - $this->assertTrue(true); + $this->expectNotToPerformAssertions(); } /** diff --git a/tests/Spout/Writer/CSV/WriterTest.php b/tests/Spout/Writer/CSV/WriterTest.php index 59309b3..4db324d 100644 --- a/tests/Spout/Writer/CSV/WriterTest.php +++ b/tests/Spout/Writer/CSV/WriterTest.php @@ -89,7 +89,7 @@ class WriterTest extends TestCase $writer->openToFile($resourcePath); $writer->close(); $writer->close(); // This call should not cause any error - $this->assertTrue(true); + $this->expectNotToPerformAssertions(); } /** diff --git a/tests/Spout/Writer/Common/Entity/SheetTest.php b/tests/Spout/Writer/Common/Entity/SheetTest.php index 8c23675..cb19d6f 100644 --- a/tests/Spout/Writer/Common/Entity/SheetTest.php +++ b/tests/Spout/Writer/Common/Entity/SheetTest.php @@ -101,7 +101,7 @@ class SheetTest extends TestCase $sheet = $this->createSheet(0, 'workbookId1'); $sheet->setName($customSheetName); $sheet->setName($customSheetName); - $this->assertTrue(true); + $this->expectNotToPerformAssertions(); } /** @@ -135,6 +135,6 @@ class SheetTest extends TestCase $sheet = $this->createSheet(1, 'workbookId3'); $sheet->setName($customSheetName); - $this->assertTrue(true); + $this->expectNotToPerformAssertions(); } } diff --git a/tests/Spout/Writer/ODS/WriterTest.php b/tests/Spout/Writer/ODS/WriterTest.php index 2390208..8527249 100644 --- a/tests/Spout/Writer/ODS/WriterTest.php +++ b/tests/Spout/Writer/ODS/WriterTest.php @@ -201,7 +201,7 @@ class WriterTest extends TestCase $writer->openToFile($resourcePath); $writer->close(); $writer->close(); // This call should not cause any error - $this->assertTrue(true); + $this->expectNotToPerformAssertions(); } /** diff --git a/tests/Spout/Writer/XLSX/WriterTest.php b/tests/Spout/Writer/XLSX/WriterTest.php index 677c912..fa6fc54 100644 --- a/tests/Spout/Writer/XLSX/WriterTest.php +++ b/tests/Spout/Writer/XLSX/WriterTest.php @@ -233,7 +233,7 @@ class WriterTest extends TestCase $writer->openToFile($resourcePath); $writer->close(); $writer->close(); // This call should not cause any error - $this->assertTrue(true); + $this->expectNotToPerformAssertions(); } /**