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

+2 -1
View File
@@ -11,11 +11,12 @@ use Box\Spout\Reader\CSV\Manager\OptionsManager;
use Box\Spout\Reader\Exception\ReaderNotOpenedException;
use Box\Spout\Reader\ReaderInterface;
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\CSV;
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;
@@ -7,11 +7,12 @@ use Box\Spout\Common\Entity\Row;
use Box\Spout\Reader\XLSX\Creator\HelperFactory;
use Box\Spout\Reader\XLSX\Creator\InternalEntityFactory;
use Box\Spout\Reader\XLSX\Creator\ManagerFactory;
use PHPUnit\Framework\TestCase;
/**
* Class RowManagerTest
*/
class RowManagerTest extends \PHPUnit_Framework_TestCase
class RowManagerTest extends TestCase
{
/**
* @return array
+2 -1
View File
@@ -7,11 +7,12 @@ use Box\Spout\Common\Type;
use Box\Spout\Reader\Common\Creator\EntityFactory;
use Box\Spout\Reader\Exception\IteratorNotRewindableException;
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\ODS;
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;
+2 -1
View File
@@ -3,11 +3,12 @@
namespace Box\Spout\Reader;
use Box\Spout\Common\Exception\UnsupportedTypeException;
use PHPUnit\Framework\TestCase;
/**
* Class ReaderFactoryTest
*/
class ReaderFactoryTest extends \PHPUnit_Framework_TestCase
class ReaderFactoryTest extends TestCase
{
/**
* @return void
+2 -1
View File
@@ -4,11 +4,12 @@ namespace Box\Spout\Reader\Wrapper;
use Box\Spout\Reader\Exception\XMLProcessingException;
use Box\Spout\TestUsingResource;
use PHPUnit\Framework\TestCase;
/**
* Class XMLReaderTest
*/
class XMLReaderTest extends \PHPUnit_Framework_TestCase
class XMLReaderTest extends TestCase
{
use TestUsingResource;
@@ -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;