Upgrade PHP and dev dependencies
/!\ Removed PHP 7.2 support /!\ - PHPUnit 8 => 9 (+ fix the tests) - PHP-CS-Fixer 2 => 3 (+ fix the code) - Introduced PHP stan
This commit is contained in:
1 parent
6a10ec3586
commit
6b7366bb6f
46 files changed
+247
-251
No files matched your search
@@ -95,7 +95,7 @@ class SheetTest extends TestCase
|
||||
/**
|
||||
* @param string $fileName
|
||||
* @param string $sheetName
|
||||
* @return Sheet
|
||||
* @return void
|
||||
*/
|
||||
private function writeDataAndReturnSheetWithCustomName($fileName, $sheetName)
|
||||
{
|
||||
|
||||
@@ -132,7 +132,7 @@ class WriterTest extends TestCase
|
||||
$writer->addRows($dataRows);
|
||||
$this->fail('Exception should have been thrown');
|
||||
} catch (SpoutException $e) {
|
||||
$this->assertFileNotExists($fileName, 'Output file should have been deleted');
|
||||
$this->assertFileDoesNotExist($fileName, 'Output file should have been deleted');
|
||||
|
||||
$numFiles = iterator_count(new \FilesystemIterator($tempFolderPath, \FilesystemIterator::SKIP_DOTS));
|
||||
$this->assertEquals(0, $numFiles, 'All temp files should have been deleted');
|
||||
|
||||
@@ -163,7 +163,7 @@ class WriterTest extends TestCase
|
||||
$writer->addRows($dataRows);
|
||||
$this->fail('Exception should have been thrown');
|
||||
} catch (SpoutException $e) {
|
||||
$this->assertFileNotExists($fileName, 'Output file should have been deleted');
|
||||
$this->assertFileDoesNotExist($fileName, 'Output file should have been deleted');
|
||||
|
||||
$numFiles = iterator_count(new \FilesystemIterator($tempFolderPath, \FilesystemIterator::SKIP_DOTS));
|
||||
$this->assertEquals(0, $numFiles, 'All temp files should have been deleted');
|
||||
|
||||
Reference in new issue
Block a user