From 9f80ece73f133e0189f707a18338ddc0b8cbd3a2 Mon Sep 17 00:00:00 2001 From: Adrien Loison Date: Sat, 15 Apr 2017 23:33:50 +0200 Subject: [PATCH] Minor fixes for tests (#406) --- tests/Spout/Reader/ODS/ReaderTest.php | 2 +- tests/Spout/Writer/CSV/WriterTest.php | 2 +- tests/Spout/Writer/ODS/WriterTest.php | 2 +- tests/Spout/Writer/XLSX/WriterTest.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/Spout/Reader/ODS/ReaderTest.php b/tests/Spout/Reader/ODS/ReaderTest.php index 77fd3d6..f36348f 100644 --- a/tests/Spout/Reader/ODS/ReaderTest.php +++ b/tests/Spout/Reader/ODS/ReaderTest.php @@ -284,7 +284,7 @@ class ReaderTest extends \PHPUnit_Framework_TestCase * * @return void */ - public function testReadShouldBeProtectedAgainstBillionLaughAttack() + public function testReadShouldBeProtectedAgainstBillionLaughsAttack() { $startTime = microtime(true); $fileName = 'attack_billion_laughs.ods'; diff --git a/tests/Spout/Writer/CSV/WriterTest.php b/tests/Spout/Writer/CSV/WriterTest.php index 0b9fdf9..9558129 100644 --- a/tests/Spout/Writer/CSV/WriterTest.php +++ b/tests/Spout/Writer/CSV/WriterTest.php @@ -73,7 +73,7 @@ class WriterTest extends \PHPUnit_Framework_TestCase $writer = WriterFactory::create(Type::CSV); $writer->close(); // This call should not cause any error - $writer->openToFile($fileName); + $writer->openToFile($resourcePath); $writer->close(); $writer->close(); // This call should not cause any error } diff --git a/tests/Spout/Writer/ODS/WriterTest.php b/tests/Spout/Writer/ODS/WriterTest.php index 513f617..172f8bd 100644 --- a/tests/Spout/Writer/ODS/WriterTest.php +++ b/tests/Spout/Writer/ODS/WriterTest.php @@ -180,7 +180,7 @@ class WriterTest extends \PHPUnit_Framework_TestCase $writer = WriterFactory::create(Type::ODS); $writer->close(); // This call should not cause any error - $writer->openToFile($fileName); + $writer->openToFile($resourcePath); $writer->close(); $writer->close(); // This call should not cause any error } diff --git a/tests/Spout/Writer/XLSX/WriterTest.php b/tests/Spout/Writer/XLSX/WriterTest.php index 8b9b233..86ae1f6 100644 --- a/tests/Spout/Writer/XLSX/WriterTest.php +++ b/tests/Spout/Writer/XLSX/WriterTest.php @@ -206,7 +206,7 @@ class WriterTest extends \PHPUnit_Framework_TestCase $writer = WriterFactory::create(Type::XLSX); $writer->close(); // This call should not cause any error - $writer->openToFile($fileName); + $writer->openToFile($resourcePath); $writer->close(); $writer->close(); // This call should not cause any error }