Merge pull request #1188 from gabriel-caruso/phpunit
Use PHPUnit\Framework\TestCase instead of PHPUnit_Framework_TestCase
This commit is contained in:
commit
266817ecac
|
|
@ -42,7 +42,7 @@
|
|||
"phpoffice/common": "^0.2"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "4.8.*",
|
||||
"phpunit/phpunit": "^4.8.36",
|
||||
"phpdocumentor/phpdocumentor":"2.*",
|
||||
"twig/twig":"1.27",
|
||||
"squizlabs/php_codesniffer": "^2.7",
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ use PhpOffice\PhpWord\Element\Footnote;
|
|||
*
|
||||
* Using concrete class Footnotes instead of AbstractCollection
|
||||
*/
|
||||
class CollectionTest extends \PHPUnit_Framework_TestCase
|
||||
class CollectionTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Test collection
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ use PhpOffice\PhpWord\SimpleType\NumberFormat;
|
|||
* @coversDefaultClass \PhpOffice\PhpWord\ComplexType\FootnoteProperties
|
||||
* @runTestsInSeparateProcesses
|
||||
*/
|
||||
class FootnotePropertiesTest extends \PHPUnit_Framework_TestCase
|
||||
class FootnotePropertiesTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Test setting style with normal value
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ namespace PhpOffice\PhpWord\ComplexType;
|
|||
*
|
||||
* @coversDefaultClass \PhpOffice\PhpWord\ComplexType\ProofState
|
||||
*/
|
||||
class ProofStateTest extends \PHPUnit_Framework_TestCase
|
||||
class ProofStateTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Tests the getters and setters
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ namespace PhpOffice\PhpWord\Element;
|
|||
/**
|
||||
* Test class for PhpOffice\PhpWord\Element\AbstractElement
|
||||
*/
|
||||
class AbstractElementTest extends \PHPUnit_Framework_TestCase
|
||||
class AbstractElementTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Test set/get element index
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ namespace PhpOffice\PhpWord\Element;
|
|||
*
|
||||
* @runTestsInSeparateProcesses
|
||||
*/
|
||||
class BookmarkTest extends \PHPUnit_Framework_TestCase
|
||||
class BookmarkTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* New instance
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ namespace PhpOffice\PhpWord\Element;
|
|||
*
|
||||
* @runTestsInSeparateProcesses
|
||||
*/
|
||||
class CellTest extends \PHPUnit_Framework_TestCase
|
||||
class CellTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* New instance
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ use PhpOffice\PhpWord\Style\Font;
|
|||
*
|
||||
* @runTestsInSeparateProcesses
|
||||
*/
|
||||
class CheckBoxTest extends \PHPUnit_Framework_TestCase
|
||||
class CheckBoxTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Construct
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ namespace PhpOffice\PhpWord\Element;
|
|||
*
|
||||
* @runTestsInSeparateProcesses
|
||||
*/
|
||||
class CommentTest extends \PHPUnit_Framework_TestCase
|
||||
class CommentTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* New instance
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ namespace PhpOffice\PhpWord\Element;
|
|||
*
|
||||
* @runTestsInSeparateProcesses
|
||||
*/
|
||||
class FieldTest extends \PHPUnit_Framework_TestCase
|
||||
class FieldTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* New instance
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ namespace PhpOffice\PhpWord\Element;
|
|||
*
|
||||
* @runTestsInSeparateProcesses
|
||||
*/
|
||||
class FooterTest extends \PHPUnit_Framework_TestCase
|
||||
class FooterTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* New instance
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ namespace PhpOffice\PhpWord\Element;
|
|||
*
|
||||
* @runTestsInSeparateProcesses
|
||||
*/
|
||||
class FootnoteTest extends \PHPUnit_Framework_TestCase
|
||||
class FootnoteTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* New instance without parameter
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ namespace PhpOffice\PhpWord\Element;
|
|||
*
|
||||
* @runTestsInSeparateProcesses
|
||||
*/
|
||||
class HeaderTest extends \PHPUnit_Framework_TestCase
|
||||
class HeaderTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* New instance
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ use PhpOffice\PhpWord\SimpleType\Jc;
|
|||
*
|
||||
* @runTestsInSeparateProcesses
|
||||
*/
|
||||
class ImageTest extends \PHPUnit_Framework_TestCase
|
||||
class ImageTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* New instance
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ namespace PhpOffice\PhpWord\Element;
|
|||
* @coversDefaultClass \PhpOffice\PhpWord\Element\Line
|
||||
* @runTestsInSeparateProcesses
|
||||
*/
|
||||
class LineTest extends \PHPUnit_Framework_TestCase
|
||||
class LineTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Create new instance
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ use PhpOffice\PhpWord\Style\Font;
|
|||
* @coversDefaultClass \PhpOffice\PhpWord\Element\Link
|
||||
* @runTestsInSeparateProcesses
|
||||
*/
|
||||
class LinkTest extends \PHPUnit_Framework_TestCase
|
||||
class LinkTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Create new instance
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ namespace PhpOffice\PhpWord\Element;
|
|||
*
|
||||
* @runTestsInSeparateProcesses
|
||||
*/
|
||||
class ListItemRunTest extends \PHPUnit_Framework_TestCase
|
||||
class ListItemRunTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* New instance
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ namespace PhpOffice\PhpWord\Element;
|
|||
* @coversDefaultClass \PhpOffice\PhpWord\Element\ListItem
|
||||
* @runTestsInSeparateProcesses
|
||||
*/
|
||||
class ListItemTest extends \PHPUnit_Framework_TestCase
|
||||
class ListItemTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Get text object
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ namespace PhpOffice\PhpWord\Element;
|
|||
* @coversDefaultClass \PhpOffice\PhpWord\Element\Object
|
||||
* @runTestsInSeparateProcesses
|
||||
*/
|
||||
class ObjectTest extends \PHPUnit_Framework_TestCase
|
||||
class ObjectTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Create new instance with supported files, 4 character extention
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ namespace PhpOffice\PhpWord\Element;
|
|||
* @coversDefaultClass \PhpOffice\PhpWord\Element\PageBreak
|
||||
* @runTestsInSeparateProcesses
|
||||
*/
|
||||
class PageBreakTest extends \PHPUnit_Framework_TestCase
|
||||
class PageBreakTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Executed before each method of the class
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ use PhpOffice\PhpWord\SimpleType\Jc;
|
|||
*
|
||||
* @runTestsInSeparateProcesses
|
||||
*/
|
||||
class PreserveTextTest extends \PHPUnit_Framework_TestCase
|
||||
class PreserveTextTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Create new instance
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ namespace PhpOffice\PhpWord\Element;
|
|||
* @coversDefaultClass \PhpOffice\PhpWord\Element\Row
|
||||
* @runTestsInSeparateProcesses
|
||||
*/
|
||||
class RowTest extends \PHPUnit_Framework_TestCase
|
||||
class RowTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Create new instance
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ namespace PhpOffice\PhpWord\Element;
|
|||
*
|
||||
* @coversDefaultClass \PhpOffice\PhpWord\Element\SDT
|
||||
*/
|
||||
class SDTTest extends \PHPUnit_Framework_TestCase
|
||||
class SDTTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Create new instance
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ use PhpOffice\PhpWord\Style;
|
|||
* @coversDefaultClass \PhpOffice\PhpWord\Element\Section
|
||||
* @runTestsInSeparateProcesses
|
||||
*/
|
||||
class SectionTest extends \PHPUnit_Framework_TestCase
|
||||
class SectionTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @covers ::setStyle
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ use PhpOffice\PhpWord\PhpWord;
|
|||
*
|
||||
* @runTestsInSeparateProcesses
|
||||
*/
|
||||
class TOCTest extends \PHPUnit_Framework_TestCase
|
||||
class TOCTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Construct with font and TOC style in array format
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ namespace PhpOffice\PhpWord\Element;
|
|||
* @coversDefaultClass \PhpOffice\PhpWord\Element\Table
|
||||
* @runTestsInSeparateProcesses
|
||||
*/
|
||||
class TableTest extends \PHPUnit_Framework_TestCase
|
||||
class TableTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Create new instance
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ namespace PhpOffice\PhpWord\Element;
|
|||
* @coversDefaultClass \PhpOffice\PhpWord\Element\TextBox
|
||||
* @runTestsInSeparateProcesses
|
||||
*/
|
||||
class TextBoxTest extends \PHPUnit_Framework_TestCase
|
||||
class TextBoxTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Create new instance
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ use PhpOffice\PhpWord\Style\Paragraph;
|
|||
* @coversDefaultClass \PhpOffice\PhpWord\Element\TextBreak
|
||||
* @runTestsInSeparateProcesses
|
||||
*/
|
||||
class TextBreakTest extends \PHPUnit_Framework_TestCase
|
||||
class TextBreakTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Construct with empty value
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ use PhpOffice\PhpWord\PhpWord;
|
|||
*
|
||||
* @runTestsInSeparateProcesses
|
||||
*/
|
||||
class TextRunTest extends \PHPUnit_Framework_TestCase
|
||||
class TextRunTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* New instance
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ use PhpOffice\PhpWord\Style\Font;
|
|||
*
|
||||
* @runTestsInSeparateProcesses
|
||||
*/
|
||||
class TextTest extends \PHPUnit_Framework_TestCase
|
||||
class TextTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* New instance
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ namespace PhpOffice\PhpWord\Element;
|
|||
* @coversDefaultClass \PhpOffice\PhpWord\Element\Title
|
||||
* @runTestsInSeparateProcesses
|
||||
*/
|
||||
class TitleTest extends \PHPUnit_Framework_TestCase
|
||||
class TitleTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Create new instance
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ namespace PhpOffice\PhpWord\Exception;
|
|||
* @covers \PhpOffice\PhpWord\Exception\CopyFileException
|
||||
* @coversDefaultClass \PhpOffice\PhpWord\Exception\CopyFileException
|
||||
*/
|
||||
class CopyFileExceptionTest extends \PHPUnit_Framework_TestCase
|
||||
class CopyFileExceptionTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* CopyFileException can be thrown.
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ namespace PhpOffice\PhpWord\Exception;
|
|||
* @covers \PhpOffice\PhpWord\Exception\CreateTemporaryFileException
|
||||
* @coversDefaultClass \PhpOffice\PhpWord\Exception\CreateTemporaryFileException
|
||||
*/
|
||||
class CreateTemporaryFileExceptionTest extends \PHPUnit_Framework_TestCase
|
||||
class CreateTemporaryFileExceptionTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* CreateTemporaryFileException can be thrown.
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ namespace PhpOffice\PhpWord\Exception;
|
|||
* @coversDefaultClass \PhpOffice\PhpWord\Exception\Exception
|
||||
* @runTestsInSeparateProcesses
|
||||
*/
|
||||
class ExceptionTest extends \PHPUnit_Framework_TestCase
|
||||
class ExceptionTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Throw new exception
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ namespace PhpOffice\PhpWord\Exception;
|
|||
* @coversDefaultClass \PhpOffice\PhpWord\Exception\InvalidImageException
|
||||
* @runTestsInSeparateProcesses
|
||||
*/
|
||||
class InvalidImageExceptionTest extends \PHPUnit_Framework_TestCase
|
||||
class InvalidImageExceptionTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Throw new exception
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ namespace PhpOffice\PhpWord\Exception;
|
|||
* @coversDefaultClass \PhpOffice\PhpWord\Exception\InvalidStyleException
|
||||
* @runTestsInSeparateProcesses
|
||||
*/
|
||||
class InvalidStyleExceptionTest extends \PHPUnit_Framework_TestCase
|
||||
class InvalidStyleExceptionTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Throw new exception
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ namespace PhpOffice\PhpWord\Exception;
|
|||
* @coversDefaultClass \PhpOffice\PhpWord\Exception\UnsupportedImageTypeExceptionTest
|
||||
* @runTestsInSeparateProcesses
|
||||
*/
|
||||
class UnsupportedImageTypeExceptionTest extends \PHPUnit_Framework_TestCase
|
||||
class UnsupportedImageTypeExceptionTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Throw new exception
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ namespace PhpOffice\PhpWord;
|
|||
*
|
||||
* @runTestsInSeparateProcesses
|
||||
*/
|
||||
class IOFactoryTest extends \PHPUnit_Framework_TestCase
|
||||
class IOFactoryTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Create existing writer
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ use PhpOffice\PhpWord\Element\Image;
|
|||
*
|
||||
* @runTestsInSeparateProcesses
|
||||
*/
|
||||
class MediaTest extends \PHPUnit_Framework_TestCase
|
||||
class MediaTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Get section media elements
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ namespace PhpOffice\PhpWord\Metadata;
|
|||
*
|
||||
* @runTestsInSeparateProcesses
|
||||
*/
|
||||
class DocInfoTest extends \PHPUnit_Framework_TestCase
|
||||
class DocInfoTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Creator
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ use PhpOffice\PhpWord\SimpleType\Zoom;
|
|||
*
|
||||
* @runTestsInSeparateProcesses
|
||||
*/
|
||||
class SettingsTest extends \PHPUnit_Framework_TestCase
|
||||
class SettingsTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* EvenAndOddHeaders
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ use PhpOffice\PhpWord\Metadata\DocInfo;
|
|||
*
|
||||
* @runTestsInSeparateProcesses
|
||||
*/
|
||||
class PhpWordTest extends \PHPUnit_Framework_TestCase
|
||||
class PhpWordTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Test object creation
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ use PhpOffice\PhpWord\IOFactory;
|
|||
* @coversDefaultClass \PhpOffice\PhpWord\Reader\HTML
|
||||
* @runTestsInSeparateProcesses
|
||||
*/
|
||||
class HTMLTest extends \PHPUnit_Framework_TestCase
|
||||
class HTMLTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Test load
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ use PhpOffice\PhpWord\IOFactory;
|
|||
* @coversDefaultClass \PhpOffice\PhpWord\Reader\MsDoc
|
||||
* @runTestsInSeparateProcesses
|
||||
*/
|
||||
class MsDocTest extends \PHPUnit_Framework_TestCase
|
||||
class MsDocTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Test canRead() method
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ use PhpOffice\PhpWord\IOFactory;
|
|||
* @coversDefaultClass \PhpOffice\PhpWord\Reader\ODText
|
||||
* @runTestsInSeparateProcesses
|
||||
*/
|
||||
class ODTextTest extends \PHPUnit_Framework_TestCase
|
||||
class ODTextTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Load
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ use PhpOffice\PhpWord\IOFactory;
|
|||
* @coversDefaultClass \PhpOffice\PhpWord\Reader\RTF
|
||||
* @runTestsInSeparateProcesses
|
||||
*/
|
||||
class RTFTest extends \PHPUnit_Framework_TestCase
|
||||
class RTFTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Test load
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ use PhpOffice\PhpWord\IOFactory;
|
|||
* @coversDefaultClass \PhpOffice\PhpWord\Reader\Word2007
|
||||
* @runTestsInSeparateProcesses
|
||||
*/
|
||||
class Word2007Test extends \PHPUnit_Framework_TestCase
|
||||
class Word2007Test extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Test canRead() method
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ namespace PhpOffice\PhpWord;
|
|||
* @coversDefaultClass \PhpOffice\PhpWord\Settings
|
||||
* @runTestsInSeparateProcesses
|
||||
*/
|
||||
class SettingsTest extends \PHPUnit_Framework_TestCase
|
||||
class SettingsTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Test set/get compatibity option
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ namespace PhpOffice\PhpWord\Shared;
|
|||
*
|
||||
* @coversDefaultClass \PhpOffice\PhpWord\Shared\Converter
|
||||
*/
|
||||
class ConverterTest extends \PHPUnit_Framework_TestCase
|
||||
class ConverterTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Test unit conversion functions with various numbers
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ use PhpOffice\PhpWord\Element\Section;
|
|||
/**
|
||||
* Test class for PhpOffice\PhpWord\Shared\Html
|
||||
*/
|
||||
class HtmlTest extends \PHPUnit_Framework_TestCase
|
||||
class HtmlTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Test unit conversion functions with various numbers
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ use PhpOffice\PhpWord\Settings;
|
|||
* @coversDefaultClass \PhpOffice\PhpWord\Shared\ZipArchive
|
||||
* @runTestsInSeparateProcesses
|
||||
*/
|
||||
class ZipArchiveTest extends \PHPUnit_Framework_TestCase
|
||||
class ZipArchiveTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Test close method exception: Working in local, not working in Travis
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ namespace PhpOffice\PhpWord\Style;
|
|||
*
|
||||
* @runTestsInSeparateProcesses
|
||||
*/
|
||||
class AbstractStyleTest extends \PHPUnit_Framework_TestCase
|
||||
class AbstractStyleTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Test set style by array
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ namespace PhpOffice\PhpWord\Style;
|
|||
* @coversDefaultClass \PhpOffice\PhpWord\Style\Cell
|
||||
* @runTestsInSeparateProcesses
|
||||
*/
|
||||
class CellTest extends \PHPUnit_Framework_TestCase
|
||||
class CellTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Test setting style with normal value
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ use PhpOffice\PhpWord\TestHelperDOCX;
|
|||
*
|
||||
* @runTestsInSeparateProcesses
|
||||
*/
|
||||
class FontTest extends \PHPUnit_Framework_TestCase
|
||||
class FontTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Tear down after each test
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ use PhpOffice\PhpWord\SimpleType\Jc;
|
|||
* @coversDefaultClass \PhpOffice\PhpWord\Style\Image
|
||||
* @runTestsInSeparateProcesses
|
||||
*/
|
||||
class ImageTest extends \PHPUnit_Framework_TestCase
|
||||
class ImageTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Test setting style with normal value
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ namespace PhpOffice\PhpWord\Style;
|
|||
*
|
||||
* @coversDefaultClass \PhpOffice\PhpWord\Style\Indentation
|
||||
*/
|
||||
class IndentationTest extends \PHPUnit_Framework_TestCase
|
||||
class IndentationTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Test get/set
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ namespace PhpOffice\PhpWord\Style;
|
|||
*
|
||||
* @coversDefaultClass \PhpOffice\PhpWord\Style\Language
|
||||
*/
|
||||
class LanguageTest extends \PHPUnit_Framework_TestCase
|
||||
class LanguageTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Test get/set
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ namespace PhpOffice\PhpWord\Style;
|
|||
*
|
||||
* @coversDefaultClass \PhpOffice\PhpWord\Style\LineNumbering
|
||||
*/
|
||||
class LineNumberingTest extends \PHPUnit_Framework_TestCase
|
||||
class LineNumberingTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Test get/set
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ namespace PhpOffice\PhpWord\Style;
|
|||
* @coversDefaultClass \PhpOffice\PhpWord\Style\Image
|
||||
* @runTestsInSeparateProcesses
|
||||
*/
|
||||
class LineTest extends \PHPUnit_Framework_TestCase
|
||||
class LineTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Test setting style with normal value
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ namespace PhpOffice\PhpWord\Style;
|
|||
* @coversDefaultClass \PhpOffice\PhpWord\Style\ListItem
|
||||
* @runTestsInSeparateProcesses
|
||||
*/
|
||||
class ListItemTest extends \PHPUnit_Framework_TestCase
|
||||
class ListItemTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Test construct
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ use PhpOffice\PhpWord\SimpleType\Jc;
|
|||
*
|
||||
* @runTestsInSeparateProcesses
|
||||
*/
|
||||
class NumberingLevelTest extends \PHPUnit_Framework_TestCase
|
||||
class NumberingLevelTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Test setting style with normal value
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ namespace PhpOffice\PhpWord\Style;
|
|||
*
|
||||
* @coversDefaultClass \PhpOffice\PhpWord\Style\Numbering
|
||||
*/
|
||||
class NumberingTest extends \PHPUnit_Framework_TestCase
|
||||
class NumberingTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Test get/set
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ use PhpOffice\PhpWord\TestHelperDOCX;
|
|||
*
|
||||
* @runTestsInSeparateProcesses
|
||||
*/
|
||||
class PaperTest extends \PHPUnit_Framework_TestCase
|
||||
class PaperTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Tear down after each test
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ use PhpOffice\PhpWord\TestHelperDOCX;
|
|||
*
|
||||
* @runTestsInSeparateProcesses
|
||||
*/
|
||||
class ParagraphTest extends \PHPUnit_Framework_TestCase
|
||||
class ParagraphTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Tear down after each test
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ namespace PhpOffice\PhpWord\Style;
|
|||
* @coversDefaultClass \PhpOffice\PhpWord\Style\Row
|
||||
* @runTestsInSeparateProcesses
|
||||
*/
|
||||
class RowTest extends \PHPUnit_Framework_TestCase
|
||||
class RowTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Test properties with boolean value
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ namespace PhpOffice\PhpWord\Style;
|
|||
* @coversDefaultClass \PhpOffice\PhpWord\Element\Section
|
||||
* @runTestsInSeparateProcesses
|
||||
*/
|
||||
class SectionTest extends \PHPUnit_Framework_TestCase
|
||||
class SectionTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Executed before each method of the class
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ namespace PhpOffice\PhpWord\Style;
|
|||
*
|
||||
* @coversDefaultClass \PhpOffice\PhpWord\Style\Shading
|
||||
*/
|
||||
class ShadingTest extends \PHPUnit_Framework_TestCase
|
||||
class ShadingTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Test get/set
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ namespace PhpOffice\PhpWord\Style;
|
|||
*
|
||||
* @coversDefaultClass \PhpOffice\PhpWord\Style\Spacing
|
||||
*/
|
||||
class SpacingTest extends \PHPUnit_Framework_TestCase
|
||||
class SpacingTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Test get/set
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ namespace PhpOffice\PhpWord\Style;
|
|||
*
|
||||
* @coversDefaultClass \PhpOffice\PhpWord\Style\TOC
|
||||
*/
|
||||
class TOCTest extends \PHPUnit_Framework_TestCase
|
||||
class TOCTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Test get/set
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ namespace PhpOffice\PhpWord\Style;
|
|||
*
|
||||
* @coversDefaultClass \PhpOffice\PhpWord\Style\Tab
|
||||
*/
|
||||
class TabTest extends \PHPUnit_Framework_TestCase
|
||||
class TabTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Test get/set
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ use PhpOffice\PhpWord\SimpleType\JcTable;
|
|||
*
|
||||
* @runTestsInSeparateProcesses
|
||||
*/
|
||||
class TableTest extends \PHPUnit_Framework_TestCase
|
||||
class TableTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Test class construction
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ use PhpOffice\PhpWord\SimpleType\Jc;
|
|||
* @coversDefaultClass \PhpOffice\PhpWord\Style\Image
|
||||
* @runTestsInSeparateProcesses
|
||||
*/
|
||||
class TextBoxTest extends \PHPUnit_Framework_TestCase
|
||||
class TextBoxTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Test setting style with normal value
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ use PhpOffice\PhpWord\SimpleType\Jc;
|
|||
* @coversDefaultClass \PhpOffice\PhpWord\Style
|
||||
* @runTestsInSeparateProcesses
|
||||
*/
|
||||
class StyleTest extends \PHPUnit_Framework_TestCase
|
||||
class StyleTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Add and get paragraph, font, link, title, and table styles
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ namespace PhpOffice\PhpWord;
|
|||
* @coversDefaultClass \PhpOffice\PhpWord\TemplateProcessor
|
||||
* @runTestsInSeparateProcesses
|
||||
*/
|
||||
final class TemplateProcessorTest extends \PHPUnit_Framework_TestCase
|
||||
final class TemplateProcessorTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Template can be saved in temporary location.
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ use PhpOffice\PhpWord\Writer\HTML\Element\Text;
|
|||
/**
|
||||
* Test class for PhpOffice\PhpWord\Writer\HTML\Element subnamespace
|
||||
*/
|
||||
class ElementTest extends \PHPUnit_Framework_TestCase
|
||||
class ElementTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Test unmatched elements
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ use PhpOffice\PhpWord\Writer\HTML\Part\Body;
|
|||
/**
|
||||
* Test class for PhpOffice\PhpWord\Writer\HTML\Part subnamespace
|
||||
*/
|
||||
class PartTest extends \PHPUnit_Framework_TestCase
|
||||
class PartTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Test get parent writer exception
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ namespace PhpOffice\PhpWord\Writer\HTML;
|
|||
/**
|
||||
* Test class for PhpOffice\PhpWord\Writer\HTML\Style subnamespace
|
||||
*/
|
||||
class StyleTest extends \PHPUnit_Framework_TestCase
|
||||
class StyleTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Test empty styles
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ use PhpOffice\PhpWord\SimpleType\Jc;
|
|||
*
|
||||
* @runTestsInSeparateProcesses
|
||||
*/
|
||||
class HTMLTest extends \PHPUnit_Framework_TestCase
|
||||
class HTMLTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Construct
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ use PhpOffice\Common\XMLWriter;
|
|||
/**
|
||||
* Test class for PhpOffice\PhpWord\Writer\ODText\Element subnamespace
|
||||
*/
|
||||
class ElementTest extends \PHPUnit_Framework_TestCase
|
||||
class ElementTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Test unmatched elements
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ use PhpOffice\PhpWord\Writer\ODText;
|
|||
* @coversDefaultClass \PhpOffice\PhpWord\Writer\ODText\Part\AbstractPart
|
||||
* @runTestsInSeparateProcesses
|
||||
*/
|
||||
class AbstractPartTest extends \PHPUnit_Framework_TestCase
|
||||
class AbstractPartTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* covers ::setParentWriter
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ use PhpOffice\PhpWord\TestHelperDOCX;
|
|||
* @coversDefaultClass \PhpOffice\PhpWord\Writer\ODText\Part\Content
|
||||
* @runTestsInSeparateProcesses
|
||||
*/
|
||||
class ContentTest extends \PHPUnit_Framework_TestCase
|
||||
class ContentTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Executed before each method of the class
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ use PhpOffice\Common\XMLWriter;
|
|||
/**
|
||||
* Test class for PhpOffice\PhpWord\Writer\ODText\Style subnamespace
|
||||
*/
|
||||
class StyleTest extends \PHPUnit_Framework_TestCase
|
||||
class StyleTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Test empty styles
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ use PhpOffice\PhpWord\SimpleType\Jc;
|
|||
*
|
||||
* @runTestsInSeparateProcesses
|
||||
*/
|
||||
class ODTextTest extends \PHPUnit_Framework_TestCase
|
||||
class ODTextTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Construct
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ use PhpOffice\PhpWord\Writer\PDF;
|
|||
*
|
||||
* @runTestsInSeparateProcesses
|
||||
*/
|
||||
class DomPDFTest extends \PHPUnit_Framework_TestCase
|
||||
class DomPDFTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Test construct
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ use PhpOffice\PhpWord\Writer\PDF;
|
|||
*
|
||||
* @runTestsInSeparateProcesses
|
||||
*/
|
||||
class MPDFTest extends \PHPUnit_Framework_TestCase
|
||||
class MPDFTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Test construct
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ use PhpOffice\PhpWord\Writer\PDF;
|
|||
*
|
||||
* @runTestsInSeparateProcesses
|
||||
*/
|
||||
class TCPDFTest extends \PHPUnit_Framework_TestCase
|
||||
class TCPDFTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Test construct
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ use PhpOffice\PhpWord\Settings;
|
|||
*
|
||||
* @runTestsInSeparateProcesses
|
||||
*/
|
||||
class PDFTest extends \PHPUnit_Framework_TestCase
|
||||
class PDFTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Test normal construct
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ use PhpOffice\PhpWord\Writer\RTF;
|
|||
/**
|
||||
* Test class for PhpOffice\PhpWord\Writer\RTF\Element subnamespace
|
||||
*/
|
||||
class ElementTest extends \PHPUnit_Framework_TestCase
|
||||
class ElementTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Test unmatched elements
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ namespace PhpOffice\PhpWord\Writer\RTF;
|
|||
/**
|
||||
* Test class for PhpOffice\PhpWord\Writer\RTF\Style subnamespace
|
||||
*/
|
||||
class StyleTest extends \PHPUnit_Framework_TestCase
|
||||
class StyleTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Test empty styles
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ use PhpOffice\PhpWord\SimpleType\Jc;
|
|||
*
|
||||
* @runTestsInSeparateProcesses
|
||||
*/
|
||||
class RTFTest extends \PHPUnit_Framework_TestCase
|
||||
class RTFTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Construct
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ use PhpOffice\PhpWord\TestHelperDOCX;
|
|||
/**
|
||||
* Test class for PhpOffice\PhpWord\Writer\Word2007\Element subnamespace
|
||||
*/
|
||||
class ElementTest extends \PHPUnit_Framework_TestCase
|
||||
class ElementTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Executed before each method of the class
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ use PhpOffice\PhpWord\Writer\Word2007;
|
|||
* @coversDefaultClass \PhpOffice\PhpWord\Writer\Word2007\Part\AbstractWriterPart
|
||||
* @runTestsInSeparateProcesses
|
||||
*/
|
||||
class AbstractPartTest extends \PHPUnit_Framework_TestCase
|
||||
class AbstractPartTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* covers ::setParentWriter
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ use PhpOffice\PhpWord\TestHelperDOCX;
|
|||
*
|
||||
* @runTestsInSeparateProcesses
|
||||
*/
|
||||
class CommentsTest extends \PHPUnit_Framework_TestCase
|
||||
class CommentsTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Executed before each method of the class
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ use PhpOffice\PhpWord\TestHelperDOCX;
|
|||
*
|
||||
* @runTestsInSeparateProcesses
|
||||
*/
|
||||
class DocumentTest extends \PHPUnit_Framework_TestCase
|
||||
class DocumentTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Executed before each method of the class
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ use PhpOffice\PhpWord\Writer\Word2007;
|
|||
* @coversDefaultClass \PhpOffice\PhpWord\Writer\Word2007\Part\Footer
|
||||
* @runTestsInSeparateProcesses
|
||||
*/
|
||||
class FooterTest extends \PHPUnit_Framework_TestCase
|
||||
class FooterTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Write footer
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ use PhpOffice\PhpWord\TestHelperDOCX;
|
|||
* @coversNothing
|
||||
* @runTestsInSeparateProcesses
|
||||
*/
|
||||
class FootnotesTest extends \PHPUnit_Framework_TestCase
|
||||
class FootnotesTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
public function tearDown()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ use PhpOffice\PhpWord\Writer\Word2007;
|
|||
*
|
||||
* @runTestsInSeparateProcesses
|
||||
*/
|
||||
class HeaderTest extends \PHPUnit_Framework_TestCase
|
||||
class HeaderTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Write header
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ use PhpOffice\PhpWord\TestHelperDOCX;
|
|||
* @runTestsInSeparateProcesses
|
||||
* @since 0.10.0
|
||||
*/
|
||||
class NumberingTest extends \PHPUnit_Framework_TestCase
|
||||
class NumberingTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Executed before each method of the class
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ use PhpOffice\PhpWord\TestHelperDOCX;
|
|||
*
|
||||
* @coversDefaultClass \PhpOffice\PhpWord\Writer\Word2007\Part\Settings
|
||||
*/
|
||||
class SettingsTest extends \PHPUnit_Framework_TestCase
|
||||
class SettingsTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Executed before each method of the class
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ use PhpOffice\PhpWord\TestHelperDOCX;
|
|||
* @coversDefaultClass \PhpOffice\PhpWord\Writer\Word2007\Part\Styles
|
||||
* @runTestsInSeparateProcesses
|
||||
*/
|
||||
class StylesTest extends \PHPUnit_Framework_TestCase
|
||||
class StylesTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Executed before each method of the class
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue