Skip to content

Commit aed27a0

Browse files
carusogabrielPowerKiKi
authored andcommitted
Use PHPUnit\Framework\TestCase instead of PHPUnit_Framework_TestCase (#271)
Use the `PHPUnit\Framework\TestCase` notation instead of `PHPUnit_Framework_TestCase` while extending our TestCases. This will help us migrate to PHPUnit 6, that [no longer support snake case class names](https://github.com/sebastianbergmann/phpunit/blob/master/ChangeLog-6.0.md#changed-1).
1 parent 442e612 commit aed27a0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+102
-102
lines changed

tests/PhpSpreadsheetTests/Calculation/CalculationTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
use PhpOffice\PhpSpreadsheet\Calculation\Calculation;
66
use PhpOffice\PhpSpreadsheet\Calculation\Functions;
7-
use PHPUnit_Framework_TestCase;
7+
use PHPUnit\Framework\TestCase;
88

9-
class CalculationTest extends PHPUnit_Framework_TestCase
9+
class CalculationTest extends TestCase
1010
{
1111
public function setUp()
1212
{

tests/PhpSpreadsheetTests/Calculation/DateTimeTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
use PhpOffice\PhpSpreadsheet\Calculation\DateTime;
66
use PhpOffice\PhpSpreadsheet\Calculation\Functions;
77
use PhpOffice\PhpSpreadsheet\Shared\Date;
8-
use PHPUnit_Framework_TestCase;
8+
use PHPUnit\Framework\TestCase;
99

1010
/**
1111
* Class DateTimeTest.
1212
*/
13-
class DateTimeTest extends PHPUnit_Framework_TestCase
13+
class DateTimeTest extends TestCase
1414
{
1515
public function setUp()
1616
{

tests/PhpSpreadsheetTests/Calculation/EngineeringTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
use PhpOffice\PhpSpreadsheet\Calculation\Engineering;
66
use PhpOffice\PhpSpreadsheet\Calculation\Functions;
77
use PhpOffice\PhpSpreadsheetTests\Custom\ComplexAssert;
8-
use PHPUnit_Framework_TestCase;
8+
use PHPUnit\Framework\TestCase;
99

10-
class EngineeringTest extends PHPUnit_Framework_TestCase
10+
class EngineeringTest extends TestCase
1111
{
1212
/**
1313
* @var ComplexAssert

tests/PhpSpreadsheetTests/Calculation/FinancialTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
use PhpOffice\PhpSpreadsheet\Calculation\Financial;
66
use PhpOffice\PhpSpreadsheet\Calculation\Functions;
7-
use PHPUnit_Framework_TestCase;
7+
use PHPUnit\Framework\TestCase;
88

9-
class FinancialTest extends PHPUnit_Framework_TestCase
9+
class FinancialTest extends TestCase
1010
{
1111
public function setUp()
1212
{

tests/PhpSpreadsheetTests/Calculation/FunctionsTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
namespace PhpOffice\PhpSpreadsheetTests\Calculation;
44

55
use PhpOffice\PhpSpreadsheet\Calculation\Functions;
6-
use PHPUnit_Framework_TestCase;
6+
use PHPUnit\Framework\TestCase;
77

8-
class FunctionsTest extends PHPUnit_Framework_TestCase
8+
class FunctionsTest extends TestCase
99
{
1010
public function setUp()
1111
{

tests/PhpSpreadsheetTests/Calculation/LogicalTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
use PhpOffice\PhpSpreadsheet\Calculation\Functions;
66
use PhpOffice\PhpSpreadsheet\Calculation\Logical;
7-
use PHPUnit_Framework_TestCase;
7+
use PHPUnit\Framework\TestCase;
88

9-
class LogicalTest extends PHPUnit_Framework_TestCase
9+
class LogicalTest extends TestCase
1010
{
1111
public function setUp()
1212
{

tests/PhpSpreadsheetTests/Calculation/LookupRefTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44

55
use PhpOffice\PhpSpreadsheet\Calculation\Functions;
66
use PhpOffice\PhpSpreadsheet\Calculation\LookupRef;
7-
use PHPUnit_Framework_TestCase;
7+
use PHPUnit\Framework\TestCase;
88

99
/**
1010
* Class LookupRefTest.
1111
*/
12-
class LookupRefTest extends PHPUnit_Framework_TestCase
12+
class LookupRefTest extends TestCase
1313
{
1414
public function setUp()
1515
{

tests/PhpSpreadsheetTests/Calculation/MathTrigTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
use PhpOffice\PhpSpreadsheet\Calculation\Calculation;
66
use PhpOffice\PhpSpreadsheet\Calculation\Functions;
77
use PhpOffice\PhpSpreadsheet\Calculation\MathTrig;
8-
use PHPUnit_Framework_TestCase;
8+
use PHPUnit\Framework\TestCase;
99

10-
class MathTrigTest extends PHPUnit_Framework_TestCase
10+
class MathTrigTest extends TestCase
1111
{
1212
public function setUp()
1313
{

tests/PhpSpreadsheetTests/Calculation/TextDataTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
use PhpOffice\PhpSpreadsheet\Calculation\Functions;
77
use PhpOffice\PhpSpreadsheet\Calculation\TextData;
88
use PhpOffice\PhpSpreadsheet\Shared\StringHelper;
9-
use PHPUnit_Framework_TestCase;
9+
use PHPUnit\Framework\TestCase;
1010

11-
class TextDataTest extends PHPUnit_Framework_TestCase
11+
class TextDataTest extends TestCase
1212
{
1313
public function setUp()
1414
{

tests/PhpSpreadsheetTests/Cell/AdvancedValueBinderTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
use PhpOffice\PhpSpreadsheet\Shared\StringHelper;
1010
use PhpOffice\PhpSpreadsheet\Style\NumberFormat;
1111
use PhpOffice\PhpSpreadsheet\Worksheet\Worksheet;
12-
use PHPUnit_Framework_TestCase;
12+
use PHPUnit\Framework\TestCase;
1313

14-
class AdvancedValueBinderTest extends PHPUnit_Framework_TestCase
14+
class AdvancedValueBinderTest extends TestCase
1515
{
1616
public function provider()
1717
{

0 commit comments

Comments
 (0)