Skip to content

Commit ef3c3b8

Browse files
author
Roman Syroeshko
committed
Reorganized unit tests.
1 parent c75bbf1 commit ef3c3b8

File tree

125 files changed

+119
-237
lines changed

Some content is hidden

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

125 files changed

+119
-237
lines changed

tests/PhpWord/Tests/AutoloaderTest.php renamed to tests/PhpWord/AutoloaderTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@
1515
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
1616
*/
1717

18-
namespace PhpOffice\PhpWord\Tests;
19-
20-
use PhpOffice\PhpWord\Autoloader;
18+
namespace PhpOffice\PhpWord;
2119

2220
/**
2321
* Test class for PhpOffice\PhpWord\Autoloader

tests/PhpWord/Tests/Collection/CollectionTest.php renamed to tests/PhpWord/Collection/CollectionTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@
77
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
88
*/
99

10-
namespace PhpOffice\PhpWord\Tests\Element;
10+
namespace PhpOffice\PhpWord\Element;
1111

1212
use PhpOffice\PhpWord\Collection\Footnotes;
13-
use PhpOffice\PhpWord\Element\Footnote;
1413

1514
/**
1615
* Test class for PhpOffice\PhpWord\Element\Collection subnamespace

tests/PhpWord/Tests/Element/AbstractElementTest.php renamed to tests/PhpWord/Element/AbstractElementTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
1616
*/
1717

18-
namespace PhpOffice\PhpWord\Tests\Element;
18+
namespace PhpOffice\PhpWord\Element;
1919

2020
/**
2121
* Test class for PhpOffice\PhpWord\Element\AbstractElement

tests/PhpWord/Tests/Element/CellTest.php renamed to tests/PhpWord/Element/CellTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@
1515
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
1616
*/
1717

18-
namespace PhpOffice\PhpWord\Tests\Element;
19-
20-
use PhpOffice\PhpWord\Element\Cell;
18+
namespace PhpOffice\PhpWord\Element;
2119

2220
/**
2321
* Test class for PhpOffice\PhpWord\Element\Cell

tests/PhpWord/Tests/Element/CheckBoxTest.php renamed to tests/PhpWord/Element/CheckBoxTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@
1515
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
1616
*/
1717

18-
namespace PhpOffice\PhpWord\Tests\Element;
18+
namespace PhpOffice\PhpWord\Element;
1919

20-
use PhpOffice\PhpWord\Element\CheckBox;
2120
use PhpOffice\PhpWord\SimpleType\Jc;
2221
use PhpOffice\PhpWord\Style\Font;
2322

tests/PhpWord/Tests/Element/FieldTest.php renamed to tests/PhpWord/Element/FieldTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@
1515
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
1616
*/
1717

18-
namespace PhpOffice\PhpWord\Tests\Element;
19-
20-
use PhpOffice\PhpWord\Element\Field;
18+
namespace PhpOffice\PhpWord\Element;
2119

2220
/**
2321
* Test class for PhpOffice\PhpWord\Element\Field

tests/PhpWord/Tests/Element/FooterTest.php renamed to tests/PhpWord/Element/FooterTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@
1515
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
1616
*/
1717

18-
namespace PhpOffice\PhpWord\Tests\Element;
19-
20-
use PhpOffice\PhpWord\Element\Footer;
18+
namespace PhpOffice\PhpWord\Element;
2119

2220
/**
2321
* Test class for PhpOffice\PhpWord\Element\Footer

tests/PhpWord/Tests/Element/FootnoteTest.php renamed to tests/PhpWord/Element/FootnoteTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@
1515
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
1616
*/
1717

18-
namespace PhpOffice\PhpWord\Tests\Element;
19-
20-
use PhpOffice\PhpWord\Element\Footnote;
18+
namespace PhpOffice\PhpWord\Element;
2119

2220
/**
2321
* Test class for PhpOffice\PhpWord\Element\Footnote

tests/PhpWord/Tests/Element/HeaderTest.php renamed to tests/PhpWord/Element/HeaderTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@
1515
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
1616
*/
1717

18-
namespace PhpOffice\PhpWord\Tests\Element;
19-
20-
use PhpOffice\PhpWord\Element\Header;
18+
namespace PhpOffice\PhpWord\Element;
2119

2220
/**
2321
* Test class for PhpOffice\PhpWord\Element\Header

tests/PhpWord/Tests/Element/ImageTest.php renamed to tests/PhpWord/Element/ImageTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@
1515
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
1616
*/
1717

18-
namespace PhpOffice\PhpWord\Tests\Element;
18+
namespace PhpOffice\PhpWord\Element;
1919

20-
use PhpOffice\PhpWord\Element\Image;
2120
use PhpOffice\PhpWord\SimpleType\Jc;
2221

2322
/**

tests/PhpWord/Tests/Element/LineTest.php renamed to tests/PhpWord/Element/LineTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@
1515
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
1616
*/
1717

18-
namespace PhpOffice\PhpWord\Tests\Element;
19-
20-
use PhpOffice\PhpWord\Element\Line;
18+
namespace PhpOffice\PhpWord\Element;
2119

2220
/**
2321
* Test class for PhpOffice\PhpWord\Element\Line

tests/PhpWord/Tests/Element/LinkTest.php renamed to tests/PhpWord/Element/LinkTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@
1515
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
1616
*/
1717

18-
namespace PhpOffice\PhpWord\Tests\Element;
18+
namespace PhpOffice\PhpWord\Element;
1919

20-
use PhpOffice\PhpWord\Element\Link;
2120
use PhpOffice\PhpWord\Style\Font;
2221

2322
/**

tests/PhpWord/Tests/Element/ListItemRunTest.php renamed to tests/PhpWord/Element/ListItemRunTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@
1515
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
1616
*/
1717

18-
namespace PhpOffice\PhpWord\Tests\Element;
19-
20-
use PhpOffice\PhpWord\Element\ListItemRun;
18+
namespace PhpOffice\PhpWord\Element;
2119

2220
/**
2321
* Test class for PhpOffice\PhpWord\Element\ListItemRun

tests/PhpWord/Tests/Element/ListItemTest.php renamed to tests/PhpWord/Element/ListItemTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@
1515
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
1616
*/
1717

18-
namespace PhpOffice\PhpWord\Tests\Element;
19-
20-
use PhpOffice\PhpWord\Element\ListItem;
18+
namespace PhpOffice\PhpWord\Element;
2119

2220
/**
2321
* Test class for PhpOffice\PhpWord\Element\ListItem

tests/PhpWord/Tests/Element/ObjectTest.php renamed to tests/PhpWord/Element/ObjectTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@
1515
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
1616
*/
1717

18-
namespace PhpOffice\PhpWord\Tests\Element;
19-
20-
use PhpOffice\PhpWord\Element\Object;
18+
namespace PhpOffice\PhpWord\Element;
2119

2220
/**
2321
* Test class for PhpOffice\PhpWord\Element\Object

tests/PhpWord/Tests/Element/PageBreakTest.php renamed to tests/PhpWord/Element/PageBreakTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@
1515
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
1616
*/
1717

18-
namespace PhpOffice\PhpWord\Tests\Element;
19-
20-
use PhpOffice\PhpWord\Element\PageBreak;
18+
namespace PhpOffice\PhpWord\Element;
2119

2220
/**
2321
* Test class for PhpOffice\PhpWord\Element\PageBreak

tests/PhpWord/Tests/Element/PreserveTextTest.php renamed to tests/PhpWord/Element/PreserveTextTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@
1515
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
1616
*/
1717

18-
namespace PhpOffice\PhpWord\Tests\Element;
18+
namespace PhpOffice\PhpWord\Element;
1919

20-
use PhpOffice\PhpWord\Element\PreserveText;
2120
use PhpOffice\PhpWord\SimpleType\Jc;
2221

2322
/**

tests/PhpWord/Tests/Element/RowTest.php renamed to tests/PhpWord/Element/RowTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@
1515
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
1616
*/
1717

18-
namespace PhpOffice\PhpWord\Tests\Element;
19-
20-
use PhpOffice\PhpWord\Element\Row;
18+
namespace PhpOffice\PhpWord\Element;
2119

2220
/**
2321
* Test class for PhpOffice\PhpWord\Element\Row

tests/PhpWord/Tests/Element/SDTTest.php renamed to tests/PhpWord/Element/SDTTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@
1515
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
1616
*/
1717

18-
namespace PhpOffice\PhpWord\Tests\Element;
19-
20-
use PhpOffice\PhpWord\Element\SDT;
18+
namespace PhpOffice\PhpWord\Element;
2119

2220
/**
2321
* Test class for PhpOffice\PhpWord\Element\SDT

tests/PhpWord/Tests/Element/SectionTest.php renamed to tests/PhpWord/Element/SectionTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,8 @@
1515
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
1616
*/
1717

18-
namespace PhpOffice\PhpWord\Tests\Element;
18+
namespace PhpOffice\PhpWord\Element;
1919

20-
use PhpOffice\PhpWord\Element\Header;
21-
use PhpOffice\PhpWord\Element\Section;
2220
use PhpOffice\PhpWord\Exception\Exception;
2321
use PhpOffice\PhpWord\PhpWord;
2422
use PhpOffice\PhpWord\Style;

tests/PhpWord/Tests/Element/TOCTest.php renamed to tests/PhpWord/Element/TOCTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,8 @@
1515
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
1616
*/
1717

18-
namespace PhpOffice\PhpWord\Tests\Element;
18+
namespace PhpOffice\PhpWord\Element;
1919

20-
use PhpOffice\PhpWord\Element\Title;
21-
use PhpOffice\PhpWord\Element\TOC;
2220
use PhpOffice\PhpWord\PhpWord;
2321

2422
/**

tests/PhpWord/Tests/Element/TableTest.php renamed to tests/PhpWord/Element/TableTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@
1515
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
1616
*/
1717

18-
namespace PhpOffice\PhpWord\Tests\Element;
19-
20-
use PhpOffice\PhpWord\Element\Table;
18+
namespace PhpOffice\PhpWord\Element;
2119

2220
/**
2321
* Test class for PhpOffice\PhpWord\Element\Table

tests/PhpWord/Tests/Element/TextBoxTest.php renamed to tests/PhpWord/Element/TextBoxTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@
1515
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
1616
*/
1717

18-
namespace PhpOffice\PhpWord\Tests\Element;
19-
20-
use PhpOffice\PhpWord\Element\TextBox;
18+
namespace PhpOffice\PhpWord\Element;
2119

2220
/**
2321
* Test class for PhpOffice\PhpWord\Element\TextBox

tests/PhpWord/Tests/Element/TextBreakTest.php renamed to tests/PhpWord/Element/TextBreakTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@
1515
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
1616
*/
1717

18-
namespace PhpOffice\PhpWord\Tests\Element;
18+
namespace PhpOffice\PhpWord\Element;
1919

20-
use PhpOffice\PhpWord\Element\TextBreak;
2120
use PhpOffice\PhpWord\Style\Font;
2221
use PhpOffice\PhpWord\Style\Paragraph;
2322

tests/PhpWord/Tests/Element/TextRunTest.php renamed to tests/PhpWord/Element/TextRunTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@
1515
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
1616
*/
1717

18-
namespace PhpOffice\PhpWord\Tests\Element;
18+
namespace PhpOffice\PhpWord\Element;
1919

20-
use PhpOffice\PhpWord\Element\TextRun;
2120
use PhpOffice\PhpWord\PhpWord;
2221

2322
/**

tests/PhpWord/Tests/Element/TextTest.php renamed to tests/PhpWord/Element/TextTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@
1515
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
1616
*/
1717

18-
namespace PhpOffice\PhpWord\Tests\Element;
18+
namespace PhpOffice\PhpWord\Element;
1919

20-
use PhpOffice\PhpWord\Element\Text;
2120
use PhpOffice\PhpWord\SimpleType\Jc;
2221
use PhpOffice\PhpWord\Style\Font;
2322

tests/PhpWord/Tests/Element/TitleTest.php renamed to tests/PhpWord/Element/TitleTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@
1515
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
1616
*/
1717

18-
namespace PhpOffice\PhpWord\Tests\Element;
19-
20-
use PhpOffice\PhpWord\Element\Title;
18+
namespace PhpOffice\PhpWord\Element;
2119

2220
/**
2321
* Test class for PhpOffice\PhpWord\Element\Title

tests/PhpWord/Tests/Exception/CopyFileExceptionTest.php renamed to tests/PhpWord/Exception/CopyFileExceptionTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@
1515
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
1616
*/
1717

18-
namespace PhpOffice\PhpWord\Tests\Exception;
19-
20-
use PhpOffice\PhpWord\Exception\CopyFileException;
18+
namespace PhpOffice\PhpWord\Exception;
2119

2220
/**
2321
* @covers \PhpOffice\PhpWord\Exception\CopyFileException

tests/PhpWord/Tests/Exception/CreateTemporaryFileExceptionTest.php renamed to tests/PhpWord/Exception/CreateTemporaryFileExceptionTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@
1515
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
1616
*/
1717

18-
namespace PhpOffice\PhpWord\Tests\Exception;
19-
20-
use PhpOffice\PhpWord\Exception\CreateTemporaryFileException;
18+
namespace PhpOffice\PhpWord\Exception;
2119

2220
/**
2321
* @covers \PhpOffice\PhpWord\Exception\CreateTemporaryFileException

tests/PhpWord/Tests/Exception/ExceptionTest.php renamed to tests/PhpWord/Exception/ExceptionTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@
1515
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
1616
*/
1717

18-
namespace PhpOffice\PhpWord\Tests\Exception;
19-
20-
use PhpOffice\PhpWord\Exception\Exception;
18+
namespace PhpOffice\PhpWord\Exception;
2119

2220
/**
2321
* Test class for PhpOffice\PhpWord\Exception\Exception

tests/PhpWord/Tests/Exception/InvalidImageExceptionTest.php renamed to tests/PhpWord/Exception/InvalidImageExceptionTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@
1515
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
1616
*/
1717

18-
namespace PhpOffice\PhpWord\Tests\Exception;
19-
20-
use PhpOffice\PhpWord\Exception\InvalidImageException;
18+
namespace PhpOffice\PhpWord\Exception;
2119

2220
/**
2321
* Test class for PhpOffice\PhpWord\Exception\InvalidImageException

tests/PhpWord/Tests/Exception/InvalidStyleExceptionTest.php renamed to tests/PhpWord/Exception/InvalidStyleExceptionTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@
1515
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
1616
*/
1717

18-
namespace PhpOffice\PhpWord\Tests\Exception;
19-
20-
use PhpOffice\PhpWord\Exception\InvalidStyleException;
18+
namespace PhpOffice\PhpWord\Exception;
2119

2220
/**
2321
* Test class for PhpOffice\PhpWord\Exception\InvalidStyleException

tests/PhpWord/Tests/Exception/UnsupportedImageTypeExceptionTest.php renamed to tests/PhpWord/Exception/UnsupportedImageTypeExceptionTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@
1515
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
1616
*/
1717

18-
namespace PhpOffice\PhpWord\Tests\Exception;
19-
20-
use PhpOffice\PhpWord\Exception\UnsupportedImageTypeException;
18+
namespace PhpOffice\PhpWord\Exception;
2119

2220
/**
2321
* Test class for PhpOffice\PhpWord\Exception\UnsupportedImageTypeExceptionTest

tests/PhpWord/Tests/IOFactoryTest.php renamed to tests/PhpWord/IOFactoryTest.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,7 @@
1515
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
1616
*/
1717

18-
namespace PhpOffice\PhpWord\Tests;
19-
20-
use PhpOffice\PhpWord\IOFactory;
21-
use PhpOffice\PhpWord\PhpWord;
18+
namespace PhpOffice\PhpWord;
2219

2320
/**
2421
* Test class for PhpOffice\PhpWord\IOFactory

tests/PhpWord/Tests/MediaTest.php renamed to tests/PhpWord/MediaTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,9 @@
1515
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
1616
*/
1717

18-
namespace PhpOffice\PhpWord\Tests;
18+
namespace PhpOffice\PhpWord;
1919

2020
use PhpOffice\PhpWord\Element\Image;
21-
use PhpOffice\PhpWord\Media;
2221

2322
/**
2423
* Test class for PhpOffice\PhpWord\Media

tests/PhpWord/Tests/Metadata/DocInfoTest.php renamed to tests/PhpWord/Metadata/DocInfoTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@
1515
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
1616
*/
1717

18-
namespace PhpOffice\PhpWord\Tests\Metadata;
19-
20-
use PhpOffice\PhpWord\Metadata\DocInfo;
18+
namespace PhpOffice\PhpWord\Metadata;
2119

2220
/**
2321
* Test class for PhpOffice\PhpWord\Metadata\DocInfo

0 commit comments

Comments
 (0)