Support PHPUnit 6

This commit is contained in:
Gabriel Caruso authored and Adrien Loison committed 2017-11-27 00:24:13 +01:00
1 parent cd0831ea8e
commit 0efdf48119
41 files changed
+88 -43

No files matched your search

@@ -3,11 +3,12 @@
namespace Box\Spout\Reader\XLSX\Helper;
use Box\Spout\Common\Exception\InvalidArgumentException;
use PHPUnit\Framework\TestCase;
/**
* Class CellHelperTest
*/
class CellHelperTest extends \PHPUnit_Framework_TestCase
class CellHelperTest extends TestCase
{
/**
* @return array
@@ -5,11 +5,12 @@ namespace Box\Spout\Reader\XLSX\Helper;
use Box\Spout\Common\Helper\Escaper;
use Box\Spout\Reader\Exception\InvalidValueException;
use Box\Spout\Reader\XLSX\Manager\StyleManager;
use PHPUnit\Framework\TestCase;
/**
* Class CellValueFormatterTest
*/
class CellValueFormatterTest extends \PHPUnit_Framework_TestCase
class CellValueFormatterTest extends TestCase
{
/**
* @return array
@@ -2,10 +2,12 @@
namespace Box\Spout\Reader\XLSX\Helper;
use PHPUnit\Framework\TestCase;
/**
* Class DateFormatHelperTest
*/
class DateFormatHelperTest extends \PHPUnit_Framework_TestCase
class DateFormatHelperTest extends TestCase
{
/**
* @return array
@@ -3,11 +3,12 @@
namespace Box\Spout\Reader\XLSX\Manager\SharedStringsCaching;
use Box\Spout\Reader\XLSX\Creator\HelperFactory;
use PHPUnit\Framework\TestCase;
/**
* Class CachingStrategyFactoryTest
*/
class CachingStrategyFactoryTest extends \PHPUnit_Framework_TestCase
class CachingStrategyFactoryTest extends TestCase
{
/**
* @return array
@@ -10,11 +10,12 @@ use Box\Spout\Reader\XLSX\Manager\SharedStringsCaching\CachingStrategyFactory;
use Box\Spout\Reader\XLSX\Manager\SharedStringsCaching\FileBasedStrategy;
use Box\Spout\Reader\XLSX\Manager\SharedStringsCaching\InMemoryStrategy;
use Box\Spout\TestUsingResource;
use PHPUnit\Framework\TestCase;
/**
* Class SharedStringsManagerTest
*/
class SharedStringsManagerTest extends \PHPUnit_Framework_TestCase
class SharedStringsManagerTest extends TestCase
{
use TestUsingResource;
@@ -3,11 +3,12 @@
namespace Box\Spout\Reader\XLSX\Manager;
use Box\Spout\Reader\XLSX\Creator\InternalEntityFactory;
use PHPUnit\Framework\TestCase;
/**
* Class StyleManagerTest
*/
class StyleManagerTest extends \PHPUnit_Framework_TestCase
class StyleManagerTest extends TestCase
{
/**
* @param array $styleAttributes
+2 -1
View File
@@ -6,11 +6,12 @@ use Box\Spout\Common\Exception\IOException;
use Box\Spout\Common\Type;
use Box\Spout\Reader\Common\Creator\EntityFactory;
use Box\Spout\TestUsingResource;
use PHPUnit\Framework\TestCase;
/**
* Class ReaderTest
*/
class ReaderTest extends \PHPUnit_Framework_TestCase
class ReaderTest extends TestCase
{
use TestUsingResource;
+2 -1
View File
@@ -5,11 +5,12 @@ namespace Box\Spout\Reader\XLSX;
use Box\Spout\Common\Type;
use Box\Spout\Reader\Common\Creator\EntityFactory;
use Box\Spout\TestUsingResource;
use PHPUnit\Framework\TestCase;
/**
* Class SheetTest
*/
class SheetTest extends \PHPUnit_Framework_TestCase
class SheetTest extends TestCase
{
use TestUsingResource;