Skip to content

Commit

Permalink
Reorganized unit tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman Syroeshko committed Nov 15, 2015
1 parent c75bbf1 commit ef3c3b8
Show file tree
Hide file tree
Showing 125 changed files with 119 additions and 237 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
*/

namespace PhpOffice\PhpWord\Tests;

use PhpOffice\PhpWord\Autoloader;
namespace PhpOffice\PhpWord;

/**
* Test class for PhpOffice\PhpWord\Autoloader
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
*/

namespace PhpOffice\PhpWord\Tests\Element;
namespace PhpOffice\PhpWord\Element;

use PhpOffice\PhpWord\Collection\Footnotes;
use PhpOffice\PhpWord\Element\Footnote;

/**
* Test class for PhpOffice\PhpWord\Element\Collection subnamespace
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
*/

namespace PhpOffice\PhpWord\Tests\Element;
namespace PhpOffice\PhpWord\Element;

/**
* Test class for PhpOffice\PhpWord\Element\AbstractElement
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
*/

namespace PhpOffice\PhpWord\Tests\Element;

use PhpOffice\PhpWord\Element\Cell;
namespace PhpOffice\PhpWord\Element;

/**
* Test class for PhpOffice\PhpWord\Element\Cell
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
*/

namespace PhpOffice\PhpWord\Tests\Element;
namespace PhpOffice\PhpWord\Element;

use PhpOffice\PhpWord\Element\CheckBox;
use PhpOffice\PhpWord\SimpleType\Jc;
use PhpOffice\PhpWord\Style\Font;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
*/

namespace PhpOffice\PhpWord\Tests\Element;

use PhpOffice\PhpWord\Element\Field;
namespace PhpOffice\PhpWord\Element;

/**
* Test class for PhpOffice\PhpWord\Element\Field
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
*/

namespace PhpOffice\PhpWord\Tests\Element;

use PhpOffice\PhpWord\Element\Footer;
namespace PhpOffice\PhpWord\Element;

/**
* Test class for PhpOffice\PhpWord\Element\Footer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
*/

namespace PhpOffice\PhpWord\Tests\Element;

use PhpOffice\PhpWord\Element\Footnote;
namespace PhpOffice\PhpWord\Element;

/**
* Test class for PhpOffice\PhpWord\Element\Footnote
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
*/

namespace PhpOffice\PhpWord\Tests\Element;

use PhpOffice\PhpWord\Element\Header;
namespace PhpOffice\PhpWord\Element;

/**
* Test class for PhpOffice\PhpWord\Element\Header
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
*/

namespace PhpOffice\PhpWord\Tests\Element;
namespace PhpOffice\PhpWord\Element;

use PhpOffice\PhpWord\Element\Image;
use PhpOffice\PhpWord\SimpleType\Jc;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
*/

namespace PhpOffice\PhpWord\Tests\Element;

use PhpOffice\PhpWord\Element\Line;
namespace PhpOffice\PhpWord\Element;

/**
* Test class for PhpOffice\PhpWord\Element\Line
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
*/

namespace PhpOffice\PhpWord\Tests\Element;
namespace PhpOffice\PhpWord\Element;

use PhpOffice\PhpWord\Element\Link;
use PhpOffice\PhpWord\Style\Font;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
*/

namespace PhpOffice\PhpWord\Tests\Element;

use PhpOffice\PhpWord\Element\ListItemRun;
namespace PhpOffice\PhpWord\Element;

/**
* Test class for PhpOffice\PhpWord\Element\ListItemRun
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
*/

namespace PhpOffice\PhpWord\Tests\Element;

use PhpOffice\PhpWord\Element\ListItem;
namespace PhpOffice\PhpWord\Element;

/**
* Test class for PhpOffice\PhpWord\Element\ListItem
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
*/

namespace PhpOffice\PhpWord\Tests\Element;

use PhpOffice\PhpWord\Element\Object;
namespace PhpOffice\PhpWord\Element;

/**
* Test class for PhpOffice\PhpWord\Element\Object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
*/

namespace PhpOffice\PhpWord\Tests\Element;

use PhpOffice\PhpWord\Element\PageBreak;
namespace PhpOffice\PhpWord\Element;

/**
* Test class for PhpOffice\PhpWord\Element\PageBreak
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
*/

namespace PhpOffice\PhpWord\Tests\Element;
namespace PhpOffice\PhpWord\Element;

use PhpOffice\PhpWord\Element\PreserveText;
use PhpOffice\PhpWord\SimpleType\Jc;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
*/

namespace PhpOffice\PhpWord\Tests\Element;

use PhpOffice\PhpWord\Element\Row;
namespace PhpOffice\PhpWord\Element;

/**
* Test class for PhpOffice\PhpWord\Element\Row
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
*/

namespace PhpOffice\PhpWord\Tests\Element;

use PhpOffice\PhpWord\Element\SDT;
namespace PhpOffice\PhpWord\Element;

/**
* Test class for PhpOffice\PhpWord\Element\SDT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,8 @@
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
*/

namespace PhpOffice\PhpWord\Tests\Element;
namespace PhpOffice\PhpWord\Element;

use PhpOffice\PhpWord\Element\Header;
use PhpOffice\PhpWord\Element\Section;
use PhpOffice\PhpWord\Exception\Exception;
use PhpOffice\PhpWord\PhpWord;
use PhpOffice\PhpWord\Style;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,8 @@
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
*/

namespace PhpOffice\PhpWord\Tests\Element;
namespace PhpOffice\PhpWord\Element;

use PhpOffice\PhpWord\Element\Title;
use PhpOffice\PhpWord\Element\TOC;
use PhpOffice\PhpWord\PhpWord;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
*/

namespace PhpOffice\PhpWord\Tests\Element;

use PhpOffice\PhpWord\Element\Table;
namespace PhpOffice\PhpWord\Element;

/**
* Test class for PhpOffice\PhpWord\Element\Table
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
*/

namespace PhpOffice\PhpWord\Tests\Element;

use PhpOffice\PhpWord\Element\TextBox;
namespace PhpOffice\PhpWord\Element;

/**
* Test class for PhpOffice\PhpWord\Element\TextBox
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
*/

namespace PhpOffice\PhpWord\Tests\Element;
namespace PhpOffice\PhpWord\Element;

use PhpOffice\PhpWord\Element\TextBreak;
use PhpOffice\PhpWord\Style\Font;
use PhpOffice\PhpWord\Style\Paragraph;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
*/

namespace PhpOffice\PhpWord\Tests\Element;
namespace PhpOffice\PhpWord\Element;

use PhpOffice\PhpWord\Element\TextRun;
use PhpOffice\PhpWord\PhpWord;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
*/

namespace PhpOffice\PhpWord\Tests\Element;
namespace PhpOffice\PhpWord\Element;

use PhpOffice\PhpWord\Element\Text;
use PhpOffice\PhpWord\SimpleType\Jc;
use PhpOffice\PhpWord\Style\Font;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
*/

namespace PhpOffice\PhpWord\Tests\Element;

use PhpOffice\PhpWord\Element\Title;
namespace PhpOffice\PhpWord\Element;

/**
* Test class for PhpOffice\PhpWord\Element\Title
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
*/

namespace PhpOffice\PhpWord\Tests\Exception;

use PhpOffice\PhpWord\Exception\CopyFileException;
namespace PhpOffice\PhpWord\Exception;

/**
* @covers \PhpOffice\PhpWord\Exception\CopyFileException
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
*/

namespace PhpOffice\PhpWord\Tests\Exception;

use PhpOffice\PhpWord\Exception\CreateTemporaryFileException;
namespace PhpOffice\PhpWord\Exception;

/**
* @covers \PhpOffice\PhpWord\Exception\CreateTemporaryFileException
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
*/

namespace PhpOffice\PhpWord\Tests\Exception;

use PhpOffice\PhpWord\Exception\Exception;
namespace PhpOffice\PhpWord\Exception;

/**
* Test class for PhpOffice\PhpWord\Exception\Exception
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
*/

namespace PhpOffice\PhpWord\Tests\Exception;

use PhpOffice\PhpWord\Exception\InvalidImageException;
namespace PhpOffice\PhpWord\Exception;

/**
* Test class for PhpOffice\PhpWord\Exception\InvalidImageException
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
*/

namespace PhpOffice\PhpWord\Tests\Exception;

use PhpOffice\PhpWord\Exception\InvalidStyleException;
namespace PhpOffice\PhpWord\Exception;

/**
* Test class for PhpOffice\PhpWord\Exception\InvalidStyleException
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
*/

namespace PhpOffice\PhpWord\Tests\Exception;

use PhpOffice\PhpWord\Exception\UnsupportedImageTypeException;
namespace PhpOffice\PhpWord\Exception;

/**
* Test class for PhpOffice\PhpWord\Exception\UnsupportedImageTypeExceptionTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
*/

namespace PhpOffice\PhpWord\Tests;

use PhpOffice\PhpWord\IOFactory;
use PhpOffice\PhpWord\PhpWord;
namespace PhpOffice\PhpWord;

/**
* Test class for PhpOffice\PhpWord\IOFactory
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
*/

namespace PhpOffice\PhpWord\Tests;
namespace PhpOffice\PhpWord;

use PhpOffice\PhpWord\Element\Image;
use PhpOffice\PhpWord\Media;

/**
* Test class for PhpOffice\PhpWord\Media
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
*/

namespace PhpOffice\PhpWord\Tests\Metadata;

use PhpOffice\PhpWord\Metadata\DocInfo;
namespace PhpOffice\PhpWord\Metadata;

/**
* Test class for PhpOffice\PhpWord\Metadata\DocInfo
Expand Down
Loading

0 comments on commit ef3c3b8

Please sign in to comment.