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:
Adrien Loison committed 2022-01-12 23:38:25 +01:00
1 parent 6a10ec3586
commit 6b7366bb6f
46 files changed
+247 -251

No files matched your search

+3 -3
View File
@@ -9,10 +9,10 @@ namespace Box\Spout\Reader\CSV;
*/
class SpoutTestStream
{
const CLASS_NAME = __CLASS__;
public const CLASS_NAME = __CLASS__;
const PATH_TO_CSV_RESOURCES = 'tests/resources/csv/';
const CSV_EXTENSION = '.csv';
public const PATH_TO_CSV_RESOURCES = 'tests/resources/csv/';
public const CSV_EXTENSION = '.csv';
/** @var int */
private $position;
@@ -46,7 +46,7 @@ class CachingStrategyFactoryTest extends TestCase
$factoryStub->method('getMemoryLimitInKB')->willReturn($memoryLimitInKB);
$tempFolder = sys_get_temp_dir();
$helperFactory = new HelperFactory($factoryStub);
$helperFactory = new HelperFactory();
$strategy = $factoryStub->createBestCachingStrategy($sharedStringsUniqueCount, $tempFolder, $helperFactory);
$fullExpectedStrategyClassName = 'Box\Spout\Reader\XLSX\Manager\SharedStringsCaching\\' . $expectedStrategyClassName;