Upgrade tests to PhpUnit 10 (#5252)
This commit is contained in:
@@ -18,7 +18,7 @@ use PhpOffice\PhpSpreadsheet\Spreadsheet;
|
||||
/**
|
||||
* @covers \App\Export\Spreadsheet\CellFormatter\StringFormatter
|
||||
*/
|
||||
class StringFormatterTest extends AbstractFormatterTest
|
||||
class StringFormatterTest extends AbstractFormatterTestCase
|
||||
{
|
||||
protected function getFormatter(): CellFormatterInterface
|
||||
{
|
||||
@@ -59,8 +59,7 @@ class StringFormatterTest extends AbstractFormatterTest
|
||||
$spreadsheet = new Spreadsheet();
|
||||
$worksheet = $spreadsheet->getActiveSheet();
|
||||
|
||||
$test = new StringHelperTest();
|
||||
foreach ($test->getDdeAttackStrings() as $attackString) {
|
||||
foreach (StringHelperTest::getDdeAttackStrings() as $attackString) {
|
||||
$value = $attackString[0];
|
||||
// PHPOffice converts that, so simply skip it
|
||||
if (!str_contains($value, "\r")) {
|
||||
|
||||
Reference in New Issue
Block a user