Skip to content

Commit ba6c03e

Browse files
committed
Use PHPUnit\Framework\TestCase instead of PHPUnit_Framework_TestCase
1 parent 7b9e262 commit ba6c03e

File tree

104 files changed

+104
-104
lines changed

Some content is hidden

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

104 files changed

+104
-104
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"phpoffice/common": "^0.2"
4343
},
4444
"require-dev": {
45-
"phpunit/phpunit": "4.8.*",
45+
"phpunit/phpunit": "^4.8.36",
4646
"phpdocumentor/phpdocumentor":"2.*",
4747
"twig/twig":"1.27",
4848
"squizlabs/php_codesniffer": "^2.7",

tests/PhpWord/Collection/CollectionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
*
2525
* Using concrete class Footnotes instead of AbstractCollection
2626
*/
27-
class CollectionTest extends \PHPUnit_Framework_TestCase
27+
class CollectionTest extends \PHPUnit\Framework\TestCase
2828
{
2929
/**
3030
* Test collection

tests/PhpWord/ComplexType/FootnotePropertiesTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
* @coversDefaultClass \PhpOffice\PhpWord\ComplexType\FootnoteProperties
2626
* @runTestsInSeparateProcesses
2727
*/
28-
class FootnotePropertiesTest extends \PHPUnit_Framework_TestCase
28+
class FootnotePropertiesTest extends \PHPUnit\Framework\TestCase
2929
{
3030
/**
3131
* Test setting style with normal value

tests/PhpWord/ComplexType/ProofStateTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
*
2323
* @coversDefaultClass \PhpOffice\PhpWord\ComplexType\ProofState
2424
*/
25-
class ProofStateTest extends \PHPUnit_Framework_TestCase
25+
class ProofStateTest extends \PHPUnit\Framework\TestCase
2626
{
2727
/**
2828
* Tests the getters and setters

tests/PhpWord/Element/AbstractElementTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
/**
2121
* Test class for PhpOffice\PhpWord\Element\AbstractElement
2222
*/
23-
class AbstractElementTest extends \PHPUnit_Framework_TestCase
23+
class AbstractElementTest extends \PHPUnit\Framework\TestCase
2424
{
2525
/**
2626
* Test set/get element index

tests/PhpWord/Element/BookmarkTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
*
2323
* @runTestsInSeparateProcesses
2424
*/
25-
class BookmarkTest extends \PHPUnit_Framework_TestCase
25+
class BookmarkTest extends \PHPUnit\Framework\TestCase
2626
{
2727
/**
2828
* New instance

tests/PhpWord/Element/CellTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
*
2323
* @runTestsInSeparateProcesses
2424
*/
25-
class CellTest extends \PHPUnit_Framework_TestCase
25+
class CellTest extends \PHPUnit\Framework\TestCase
2626
{
2727
/**
2828
* New instance

tests/PhpWord/Element/CheckBoxTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
*
2626
* @runTestsInSeparateProcesses
2727
*/
28-
class CheckBoxTest extends \PHPUnit_Framework_TestCase
28+
class CheckBoxTest extends \PHPUnit\Framework\TestCase
2929
{
3030
/**
3131
* Construct

tests/PhpWord/Element/CommentTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
*
2323
* @runTestsInSeparateProcesses
2424
*/
25-
class CommentTest extends \PHPUnit_Framework_TestCase
25+
class CommentTest extends \PHPUnit\Framework\TestCase
2626
{
2727
/**
2828
* New instance

tests/PhpWord/Element/FieldTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
*
2323
* @runTestsInSeparateProcesses
2424
*/
25-
class FieldTest extends \PHPUnit_Framework_TestCase
25+
class FieldTest extends \PHPUnit\Framework\TestCase
2626
{
2727
/**
2828
* New instance

tests/PhpWord/Element/FooterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
*
2323
* @runTestsInSeparateProcesses
2424
*/
25-
class FooterTest extends \PHPUnit_Framework_TestCase
25+
class FooterTest extends \PHPUnit\Framework\TestCase
2626
{
2727
/**
2828
* New instance

tests/PhpWord/Element/FootnoteTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
*
2323
* @runTestsInSeparateProcesses
2424
*/
25-
class FootnoteTest extends \PHPUnit_Framework_TestCase
25+
class FootnoteTest extends \PHPUnit\Framework\TestCase
2626
{
2727
/**
2828
* New instance without parameter

tests/PhpWord/Element/HeaderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
*
2323
* @runTestsInSeparateProcesses
2424
*/
25-
class HeaderTest extends \PHPUnit_Framework_TestCase
25+
class HeaderTest extends \PHPUnit\Framework\TestCase
2626
{
2727
/**
2828
* New instance

tests/PhpWord/Element/ImageTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
*
2525
* @runTestsInSeparateProcesses
2626
*/
27-
class ImageTest extends \PHPUnit_Framework_TestCase
27+
class ImageTest extends \PHPUnit\Framework\TestCase
2828
{
2929
/**
3030
* New instance

tests/PhpWord/Element/LineTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* @coversDefaultClass \PhpOffice\PhpWord\Element\Line
2424
* @runTestsInSeparateProcesses
2525
*/
26-
class LineTest extends \PHPUnit_Framework_TestCase
26+
class LineTest extends \PHPUnit\Framework\TestCase
2727
{
2828
/**
2929
* Create new instance

tests/PhpWord/Element/LinkTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
* @coversDefaultClass \PhpOffice\PhpWord\Element\Link
2626
* @runTestsInSeparateProcesses
2727
*/
28-
class LinkTest extends \PHPUnit_Framework_TestCase
28+
class LinkTest extends \PHPUnit\Framework\TestCase
2929
{
3030
/**
3131
* Create new instance

tests/PhpWord/Element/ListItemRunTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
*
2323
* @runTestsInSeparateProcesses
2424
*/
25-
class ListItemRunTest extends \PHPUnit_Framework_TestCase
25+
class ListItemRunTest extends \PHPUnit\Framework\TestCase
2626
{
2727
/**
2828
* New instance

tests/PhpWord/Element/ListItemTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* @coversDefaultClass \PhpOffice\PhpWord\Element\ListItem
2424
* @runTestsInSeparateProcesses
2525
*/
26-
class ListItemTest extends \PHPUnit_Framework_TestCase
26+
class ListItemTest extends \PHPUnit\Framework\TestCase
2727
{
2828
/**
2929
* Get text object

tests/PhpWord/Element/ObjectTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* @coversDefaultClass \PhpOffice\PhpWord\Element\Object
2424
* @runTestsInSeparateProcesses
2525
*/
26-
class ObjectTest extends \PHPUnit_Framework_TestCase
26+
class ObjectTest extends \PHPUnit\Framework\TestCase
2727
{
2828
/**
2929
* Create new instance with supported files, 4 character extention

tests/PhpWord/Element/PageBreakTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* @coversDefaultClass \PhpOffice\PhpWord\Element\PageBreak
2424
* @runTestsInSeparateProcesses
2525
*/
26-
class PageBreakTest extends \PHPUnit_Framework_TestCase
26+
class PageBreakTest extends \PHPUnit\Framework\TestCase
2727
{
2828
/**
2929
* Executed before each method of the class

tests/PhpWord/Element/PreserveTextTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
*
2525
* @runTestsInSeparateProcesses
2626
*/
27-
class PreserveTextTest extends \PHPUnit_Framework_TestCase
27+
class PreserveTextTest extends \PHPUnit\Framework\TestCase
2828
{
2929
/**
3030
* Create new instance

tests/PhpWord/Element/RowTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* @coversDefaultClass \PhpOffice\PhpWord\Element\Row
2424
* @runTestsInSeparateProcesses
2525
*/
26-
class RowTest extends \PHPUnit_Framework_TestCase
26+
class RowTest extends \PHPUnit\Framework\TestCase
2727
{
2828
/**
2929
* Create new instance

tests/PhpWord/Element/SDTTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
*
2323
* @coversDefaultClass \PhpOffice\PhpWord\Element\SDT
2424
*/
25-
class SDTTest extends \PHPUnit_Framework_TestCase
25+
class SDTTest extends \PHPUnit\Framework\TestCase
2626
{
2727
/**
2828
* Create new instance

tests/PhpWord/Element/SectionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
* @coversDefaultClass \PhpOffice\PhpWord\Element\Section
2626
* @runTestsInSeparateProcesses
2727
*/
28-
class SectionTest extends \PHPUnit_Framework_TestCase
28+
class SectionTest extends \PHPUnit\Framework\TestCase
2929
{
3030
/**
3131
* @covers ::setStyle

tests/PhpWord/Element/TOCTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
*
2525
* @runTestsInSeparateProcesses
2626
*/
27-
class TOCTest extends \PHPUnit_Framework_TestCase
27+
class TOCTest extends \PHPUnit\Framework\TestCase
2828
{
2929
/**
3030
* Construct with font and TOC style in array format

tests/PhpWord/Element/TableTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* @coversDefaultClass \PhpOffice\PhpWord\Element\Table
2424
* @runTestsInSeparateProcesses
2525
*/
26-
class TableTest extends \PHPUnit_Framework_TestCase
26+
class TableTest extends \PHPUnit\Framework\TestCase
2727
{
2828
/**
2929
* Create new instance

tests/PhpWord/Element/TextBoxTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* @coversDefaultClass \PhpOffice\PhpWord\Element\TextBox
2424
* @runTestsInSeparateProcesses
2525
*/
26-
class TextBoxTest extends \PHPUnit_Framework_TestCase
26+
class TextBoxTest extends \PHPUnit\Framework\TestCase
2727
{
2828
/**
2929
* Create new instance

tests/PhpWord/Element/TextBreakTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
* @coversDefaultClass \PhpOffice\PhpWord\Element\TextBreak
2727
* @runTestsInSeparateProcesses
2828
*/
29-
class TextBreakTest extends \PHPUnit_Framework_TestCase
29+
class TextBreakTest extends \PHPUnit\Framework\TestCase
3030
{
3131
/**
3232
* Construct with empty value

tests/PhpWord/Element/TextRunTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
*
2525
* @runTestsInSeparateProcesses
2626
*/
27-
class TextRunTest extends \PHPUnit_Framework_TestCase
27+
class TextRunTest extends \PHPUnit\Framework\TestCase
2828
{
2929
/**
3030
* New instance

tests/PhpWord/Element/TextTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
*
2626
* @runTestsInSeparateProcesses
2727
*/
28-
class TextTest extends \PHPUnit_Framework_TestCase
28+
class TextTest extends \PHPUnit\Framework\TestCase
2929
{
3030
/**
3131
* New instance

tests/PhpWord/Element/TitleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* @coversDefaultClass \PhpOffice\PhpWord\Element\Title
2424
* @runTestsInSeparateProcesses
2525
*/
26-
class TitleTest extends \PHPUnit_Framework_TestCase
26+
class TitleTest extends \PHPUnit\Framework\TestCase
2727
{
2828
/**
2929
* Create new instance

tests/PhpWord/Exception/CopyFileExceptionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
* @covers \PhpOffice\PhpWord\Exception\CopyFileException
2222
* @coversDefaultClass \PhpOffice\PhpWord\Exception\CopyFileException
2323
*/
24-
class CopyFileExceptionTest extends \PHPUnit_Framework_TestCase
24+
class CopyFileExceptionTest extends \PHPUnit\Framework\TestCase
2525
{
2626
/**
2727
* CopyFileException can be thrown.

tests/PhpWord/Exception/CreateTemporaryFileExceptionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
* @covers \PhpOffice\PhpWord\Exception\CreateTemporaryFileException
2222
* @coversDefaultClass \PhpOffice\PhpWord\Exception\CreateTemporaryFileException
2323
*/
24-
class CreateTemporaryFileExceptionTest extends \PHPUnit_Framework_TestCase
24+
class CreateTemporaryFileExceptionTest extends \PHPUnit\Framework\TestCase
2525
{
2626
/**
2727
* CreateTemporaryFileException can be thrown.

tests/PhpWord/Exception/ExceptionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* @coversDefaultClass \PhpOffice\PhpWord\Exception\Exception
2424
* @runTestsInSeparateProcesses
2525
*/
26-
class ExceptionTest extends \PHPUnit_Framework_TestCase
26+
class ExceptionTest extends \PHPUnit\Framework\TestCase
2727
{
2828
/**
2929
* Throw new exception

tests/PhpWord/Exception/InvalidImageExceptionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* @coversDefaultClass \PhpOffice\PhpWord\Exception\InvalidImageException
2424
* @runTestsInSeparateProcesses
2525
*/
26-
class InvalidImageExceptionTest extends \PHPUnit_Framework_TestCase
26+
class InvalidImageExceptionTest extends \PHPUnit\Framework\TestCase
2727
{
2828
/**
2929
* Throw new exception

tests/PhpWord/Exception/InvalidStyleExceptionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* @coversDefaultClass \PhpOffice\PhpWord\Exception\InvalidStyleException
2424
* @runTestsInSeparateProcesses
2525
*/
26-
class InvalidStyleExceptionTest extends \PHPUnit_Framework_TestCase
26+
class InvalidStyleExceptionTest extends \PHPUnit\Framework\TestCase
2727
{
2828
/**
2929
* Throw new exception

tests/PhpWord/Exception/UnsupportedImageTypeExceptionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* @coversDefaultClass \PhpOffice\PhpWord\Exception\UnsupportedImageTypeExceptionTest
2424
* @runTestsInSeparateProcesses
2525
*/
26-
class UnsupportedImageTypeExceptionTest extends \PHPUnit_Framework_TestCase
26+
class UnsupportedImageTypeExceptionTest extends \PHPUnit\Framework\TestCase
2727
{
2828
/**
2929
* Throw new exception

tests/PhpWord/IOFactoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
*
2323
* @runTestsInSeparateProcesses
2424
*/
25-
class IOFactoryTest extends \PHPUnit_Framework_TestCase
25+
class IOFactoryTest extends \PHPUnit\Framework\TestCase
2626
{
2727
/**
2828
* Create existing writer

tests/PhpWord/MediaTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
*
2525
* @runTestsInSeparateProcesses
2626
*/
27-
class MediaTest extends \PHPUnit_Framework_TestCase
27+
class MediaTest extends \PHPUnit\Framework\TestCase
2828
{
2929
/**
3030
* Get section media elements

tests/PhpWord/Metadata/DocInfoTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
*
2323
* @runTestsInSeparateProcesses
2424
*/
25-
class DocInfoTest extends \PHPUnit_Framework_TestCase
25+
class DocInfoTest extends \PHPUnit\Framework\TestCase
2626
{
2727
/**
2828
* Creator

tests/PhpWord/Metadata/SettingsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
*
2626
* @runTestsInSeparateProcesses
2727
*/
28-
class SettingsTest extends \PHPUnit_Framework_TestCase
28+
class SettingsTest extends \PHPUnit\Framework\TestCase
2929
{
3030
/**
3131
* EvenAndOddHeaders

tests/PhpWord/PhpWordTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
*
2525
* @runTestsInSeparateProcesses
2626
*/
27-
class PhpWordTest extends \PHPUnit_Framework_TestCase
27+
class PhpWordTest extends \PHPUnit\Framework\TestCase
2828
{
2929
/**
3030
* Test object creation

tests/PhpWord/Reader/HTMLTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
* @coversDefaultClass \PhpOffice\PhpWord\Reader\HTML
2626
* @runTestsInSeparateProcesses
2727
*/
28-
class HTMLTest extends \PHPUnit_Framework_TestCase
28+
class HTMLTest extends \PHPUnit\Framework\TestCase
2929
{
3030
/**
3131
* Test load

tests/PhpWord/Reader/MsDocTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
* @coversDefaultClass \PhpOffice\PhpWord\Reader\MsDoc
2626
* @runTestsInSeparateProcesses
2727
*/
28-
class MsDocTest extends \PHPUnit_Framework_TestCase
28+
class MsDocTest extends \PHPUnit\Framework\TestCase
2929
{
3030
/**
3131
* Test canRead() method

0 commit comments

Comments
 (0)