Minor fixes for tests (#406)

This commit is contained in:
Adrien Loison 2017-04-15 23:33:50 +02:00 committed by GitHub
parent 7f8b95b2f3
commit 9f80ece73f
4 changed files with 4 additions and 4 deletions

View File

@ -284,7 +284,7 @@ class ReaderTest extends \PHPUnit_Framework_TestCase
* *
* @return void * @return void
*/ */
public function testReadShouldBeProtectedAgainstBillionLaughAttack() public function testReadShouldBeProtectedAgainstBillionLaughsAttack()
{ {
$startTime = microtime(true); $startTime = microtime(true);
$fileName = 'attack_billion_laughs.ods'; $fileName = 'attack_billion_laughs.ods';

View File

@ -73,7 +73,7 @@ class WriterTest extends \PHPUnit_Framework_TestCase
$writer = WriterFactory::create(Type::CSV); $writer = WriterFactory::create(Type::CSV);
$writer->close(); // This call should not cause any error $writer->close(); // This call should not cause any error
$writer->openToFile($fileName); $writer->openToFile($resourcePath);
$writer->close(); $writer->close();
$writer->close(); // This call should not cause any error $writer->close(); // This call should not cause any error
} }

View File

@ -180,7 +180,7 @@ class WriterTest extends \PHPUnit_Framework_TestCase
$writer = WriterFactory::create(Type::ODS); $writer = WriterFactory::create(Type::ODS);
$writer->close(); // This call should not cause any error $writer->close(); // This call should not cause any error
$writer->openToFile($fileName); $writer->openToFile($resourcePath);
$writer->close(); $writer->close();
$writer->close(); // This call should not cause any error $writer->close(); // This call should not cause any error
} }

View File

@ -206,7 +206,7 @@ class WriterTest extends \PHPUnit_Framework_TestCase
$writer = WriterFactory::create(Type::XLSX); $writer = WriterFactory::create(Type::XLSX);
$writer->close(); // This call should not cause any error $writer->close(); // This call should not cause any error
$writer->openToFile($fileName); $writer->openToFile($resourcePath);
$writer->close(); $writer->close();
$writer->close(); // This call should not cause any error $writer->close(); // This call should not cause any error
} }