Merge pull request #1188 from gabriel-caruso/phpunit

Use PHPUnit\Framework\TestCase instead of PHPUnit_Framework_TestCase
This commit is contained in:
troosan 2017-11-10 11:21:42 +01:00 committed by GitHub
commit 266817ecac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
104 changed files with 104 additions and 104 deletions

View File

@ -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",

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -22,7 +22,7 @@ namespace PhpOffice\PhpWord\Element;
*
* @runTestsInSeparateProcesses
*/
class BookmarkTest extends \PHPUnit_Framework_TestCase
class BookmarkTest extends \PHPUnit\Framework\TestCase
{
/**
* New instance

View File

@ -22,7 +22,7 @@ namespace PhpOffice\PhpWord\Element;
*
* @runTestsInSeparateProcesses
*/
class CellTest extends \PHPUnit_Framework_TestCase
class CellTest extends \PHPUnit\Framework\TestCase
{
/**
* New instance

View File

@ -25,7 +25,7 @@ use PhpOffice\PhpWord\Style\Font;
*
* @runTestsInSeparateProcesses
*/
class CheckBoxTest extends \PHPUnit_Framework_TestCase
class CheckBoxTest extends \PHPUnit\Framework\TestCase
{
/**
* Construct

View File

@ -22,7 +22,7 @@ namespace PhpOffice\PhpWord\Element;
*
* @runTestsInSeparateProcesses
*/
class CommentTest extends \PHPUnit_Framework_TestCase
class CommentTest extends \PHPUnit\Framework\TestCase
{
/**
* New instance

View File

@ -22,7 +22,7 @@ namespace PhpOffice\PhpWord\Element;
*
* @runTestsInSeparateProcesses
*/
class FieldTest extends \PHPUnit_Framework_TestCase
class FieldTest extends \PHPUnit\Framework\TestCase
{
/**
* New instance

View File

@ -22,7 +22,7 @@ namespace PhpOffice\PhpWord\Element;
*
* @runTestsInSeparateProcesses
*/
class FooterTest extends \PHPUnit_Framework_TestCase
class FooterTest extends \PHPUnit\Framework\TestCase
{
/**
* New instance

View File

@ -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

View File

@ -22,7 +22,7 @@ namespace PhpOffice\PhpWord\Element;
*
* @runTestsInSeparateProcesses
*/
class HeaderTest extends \PHPUnit_Framework_TestCase
class HeaderTest extends \PHPUnit\Framework\TestCase
{
/**
* New instance

View File

@ -24,7 +24,7 @@ use PhpOffice\PhpWord\SimpleType\Jc;
*
* @runTestsInSeparateProcesses
*/
class ImageTest extends \PHPUnit_Framework_TestCase
class ImageTest extends \PHPUnit\Framework\TestCase
{
/**
* New instance

View File

@ -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

View File

@ -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

View File

@ -22,7 +22,7 @@ namespace PhpOffice\PhpWord\Element;
*
* @runTestsInSeparateProcesses
*/
class ListItemRunTest extends \PHPUnit_Framework_TestCase
class ListItemRunTest extends \PHPUnit\Framework\TestCase
{
/**
* New instance

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -24,7 +24,7 @@ use PhpOffice\PhpWord\PhpWord;
*
* @runTestsInSeparateProcesses
*/
class TextRunTest extends \PHPUnit_Framework_TestCase
class TextRunTest extends \PHPUnit\Framework\TestCase
{
/**
* New instance

View File

@ -25,7 +25,7 @@ use PhpOffice\PhpWord\Style\Font;
*
* @runTestsInSeparateProcesses
*/
class TextTest extends \PHPUnit_Framework_TestCase
class TextTest extends \PHPUnit\Framework\TestCase
{
/**
* New instance

View File

@ -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

View File

@ -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.

View File

@ -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.

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -22,7 +22,7 @@ namespace PhpOffice\PhpWord;
*
* @runTestsInSeparateProcesses
*/
class IOFactoryTest extends \PHPUnit_Framework_TestCase
class IOFactoryTest extends \PHPUnit\Framework\TestCase
{
/**
* Create existing writer

View File

@ -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

View File

@ -22,7 +22,7 @@ namespace PhpOffice\PhpWord\Metadata;
*
* @runTestsInSeparateProcesses
*/
class DocInfoTest extends \PHPUnit_Framework_TestCase
class DocInfoTest extends \PHPUnit\Framework\TestCase
{
/**
* Creator

View File

@ -25,7 +25,7 @@ use PhpOffice\PhpWord\SimpleType\Zoom;
*
* @runTestsInSeparateProcesses
*/
class SettingsTest extends \PHPUnit_Framework_TestCase
class SettingsTest extends \PHPUnit\Framework\TestCase
{
/**
* EvenAndOddHeaders

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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.

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -25,7 +25,7 @@ use PhpOffice\PhpWord\SimpleType\Jc;
*
* @runTestsInSeparateProcesses
*/
class HTMLTest extends \PHPUnit_Framework_TestCase
class HTMLTest extends \PHPUnit\Framework\TestCase
{
/**
* Construct

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -25,7 +25,7 @@ use PhpOffice\PhpWord\SimpleType\Jc;
*
* @runTestsInSeparateProcesses
*/
class ODTextTest extends \PHPUnit_Framework_TestCase
class ODTextTest extends \PHPUnit\Framework\TestCase
{
/**
* Construct

View File

@ -26,7 +26,7 @@ use PhpOffice\PhpWord\Writer\PDF;
*
* @runTestsInSeparateProcesses
*/
class DomPDFTest extends \PHPUnit_Framework_TestCase
class DomPDFTest extends \PHPUnit\Framework\TestCase
{
/**
* Test construct

View File

@ -26,7 +26,7 @@ use PhpOffice\PhpWord\Writer\PDF;
*
* @runTestsInSeparateProcesses
*/
class MPDFTest extends \PHPUnit_Framework_TestCase
class MPDFTest extends \PHPUnit\Framework\TestCase
{
/**
* Test construct

View File

@ -26,7 +26,7 @@ use PhpOffice\PhpWord\Writer\PDF;
*
* @runTestsInSeparateProcesses
*/
class TCPDFTest extends \PHPUnit_Framework_TestCase
class TCPDFTest extends \PHPUnit\Framework\TestCase
{
/**
* Test construct

View File

@ -25,7 +25,7 @@ use PhpOffice\PhpWord\Settings;
*
* @runTestsInSeparateProcesses
*/
class PDFTest extends \PHPUnit_Framework_TestCase
class PDFTest extends \PHPUnit\Framework\TestCase
{
/**
* Test normal construct

View File

@ -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

View File

@ -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

View File

@ -25,7 +25,7 @@ use PhpOffice\PhpWord\SimpleType\Jc;
*
* @runTestsInSeparateProcesses
*/
class RTFTest extends \PHPUnit_Framework_TestCase
class RTFTest extends \PHPUnit\Framework\TestCase
{
/**
* Construct

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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()
{

View File

@ -24,7 +24,7 @@ use PhpOffice\PhpWord\Writer\Word2007;
*
* @runTestsInSeparateProcesses
*/
class HeaderTest extends \PHPUnit_Framework_TestCase
class HeaderTest extends \PHPUnit\Framework\TestCase
{
/**
* Write header

View File

@ -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

View File

@ -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

View File

@ -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