Skip to content

Unit test for Template.save() method #117

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from Mar 13, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions Tests/PHPWord/AutoloaderTest.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
<?php
namespace PHPWord\Tests;

use PHPUnit_Framework_TestCase;
use PHPWord_Autoloader;
use PHPWord_Autoloader as Autoloader;

class AutoloaderTest extends PHPUnit_Framework_TestCase
class AutoloaderTest extends \PHPUnit_Framework_TestCase
{
public function testRegister()
{
Expand Down
1 change: 0 additions & 1 deletion Tests/PHPWord/IOFactoryTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php
namespace PHPWord\Tests;

use PHPUnit_Framework_TestCase;
use PHPWord;
use PHPWord_IOFactory;
use PHPWord_Writer_Word2007;
Expand Down
1 change: 0 additions & 1 deletion Tests/PHPWord/MediaTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php
namespace PHPWord\Tests;

use PHPUnit_Framework_TestCase;
use PHPWord_Media;
use PHPWord_Section;

Expand Down
1 change: 0 additions & 1 deletion Tests/PHPWord/Reader/Word2007Test.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php
namespace PHPWord\Tests\Reader;

use PHPUnit_Framework_TestCase;
use PHPWord_Reader_Word2007;
use PHPWord_IOFactory;

Expand Down
1 change: 0 additions & 1 deletion Tests/PHPWord/Section/Footer/PreserveTextTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php
namespace PHPWord\Tests\Section\Footer;

use PHPUnit_Framework_TestCase;
use PHPWord_Section_Footer_PreserveText;

class PreserveTextTest extends \PHPUnit_Framework_TestCase
Expand Down
1 change: 0 additions & 1 deletion Tests/PHPWord/Section/FooterTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php
namespace PHPWord\Tests\Section;

use PHPUnit_Framework_TestCase;
use PHPWord_Section_Footer;

class FooterTest extends \PHPUnit_Framework_TestCase
Expand Down
1 change: 0 additions & 1 deletion Tests/PHPWord/Section/FootnoteTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php
namespace PHPWord\Tests\Section;

use PHPUnit_Framework_TestCase;
use PHPWord_Section_Footnote;

class FootnoteTest extends \PHPUnit_Framework_TestCase
Expand Down
1 change: 0 additions & 1 deletion Tests/PHPWord/Section/HeaderTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php
namespace PHPWord\Tests\Section;

use PHPUnit_Framework_TestCase;
use PHPWord_Section_Header;

class HeaderTest extends \PHPUnit_Framework_TestCase
Expand Down
1 change: 0 additions & 1 deletion Tests/PHPWord/Section/ImageTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php
namespace PHPWord\Tests\Section;

use PHPUnit_Framework_TestCase;
use PHPWord_Section_Image;
use PHPWord_Style_Image;

Expand Down
1 change: 0 additions & 1 deletion Tests/PHPWord/Section/LinkTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php
namespace PHPWord\Tests\Section;

use PHPUnit_Framework_TestCase;
use PHPWord_Section_Link;
use PHPWord_Style_Font;

Expand Down
1 change: 0 additions & 1 deletion Tests/PHPWord/Section/ListItemTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php
namespace PHPWord\Tests\Section;

use PHPUnit_Framework_TestCase;
use PHPWord_Section_ListItem;
use PHPWord_Style_ListItem;

Expand Down
1 change: 0 additions & 1 deletion Tests/PHPWord/Section/MemoryImageTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php
namespace PHPWord\Tests\Section;

use PHPUnit_Framework_TestCase;
use PHPWord_Section_MemoryImage;

class MemoryImageTest extends \PHPUnit_Framework_TestCase
Expand Down
1 change: 0 additions & 1 deletion Tests/PHPWord/Section/ObjectTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php
namespace PHPWord\Tests\Section;

use PHPUnit_Framework_TestCase;
use PHPWord_Section_Object;

class ObjectTest extends \PHPUnit_Framework_TestCase
Expand Down
1 change: 0 additions & 1 deletion Tests/PHPWord/Section/PageBreakTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php
namespace PHPWord\Tests\Section;

use PHPUnit_Framework_TestCase;
use PHPWord_Section_PageBreak;

class PageBreakTest extends \PHPUnit_Framework_TestCase
Expand Down
1 change: 0 additions & 1 deletion Tests/PHPWord/Section/SettingsTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php
namespace PHPWord\Tests\Section;

use PHPUnit_Framework_TestCase;
use PHPWord_Section_Settings;

class SettingsTest extends \PHPUnit_Framework_TestCase
Expand Down
1 change: 0 additions & 1 deletion Tests/PHPWord/Section/Table/CellTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php
namespace PHPWord\Tests\Section\Table;

use PHPUnit_Framework_TestCase;
use PHPWord_Section_Table_Cell;

class CellTest extends \PHPUnit_Framework_TestCase
Expand Down
1 change: 0 additions & 1 deletion Tests/PHPWord/Section/Table/RowTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php
namespace PHPWord\Tests\Section\Table;

use PHPUnit_Framework_TestCase;
use PHPWord_Section_Table_Row;

class RowTest extends \PHPUnit_Framework_TestCase
Expand Down
1 change: 0 additions & 1 deletion Tests/PHPWord/Section/TableTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php
namespace PHPWord\Tests\Section;

use PHPUnit_Framework_TestCase;
use PHPWord_Section_Table;

class TableTest extends \PHPUnit_Framework_TestCase
Expand Down
1 change: 0 additions & 1 deletion Tests/PHPWord/Section/TextBreakTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php
namespace PHPWord\Tests\Section;

use PHPUnit_Framework_TestCase;
use PHPWord_Section_TextBreak;

class TextBreakTest extends \PHPUnit_Framework_TestCase
Expand Down
1 change: 0 additions & 1 deletion Tests/PHPWord/Section/TextRunTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php
namespace PHPWord\Tests\Section;

use PHPUnit_Framework_TestCase;
use PHPWord_Section_TextRun;

class TextRunTest extends \PHPUnit_Framework_TestCase
Expand Down
1 change: 0 additions & 1 deletion Tests/PHPWord/Section/TextTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php
namespace PHPWord\Tests\Section;

use PHPUnit_Framework_TestCase;
use PHPWord_Section_Text;

class TextTest extends \PHPUnit_Framework_TestCase
Expand Down
1 change: 0 additions & 1 deletion Tests/PHPWord/Section/TitleTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php
namespace PHPWord\Tests\Section;

use PHPUnit_Framework_TestCase;
use PHPWord_Section_Title;

class TitleTest extends \PHPUnit_Framework_TestCase
Expand Down
1 change: 0 additions & 1 deletion Tests/PHPWord/SectionTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php
namespace PHPWord\Tests;

use PHPUnit_Framework_TestCase;
use PHPWord_Section;

class SectionTest extends \PHPUnit_Framework_TestCase
Expand Down
1 change: 0 additions & 1 deletion Tests/PHPWord/Shared/DrawingTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php
namespace PHPWord\Tests\Shared;

use PHPUnit_Framework_TestCase;
use PHPWord_Shared_Drawing;

/**
Expand Down
1 change: 0 additions & 1 deletion Tests/PHPWord/Shared/FileTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php
namespace PHPWord\Tests\Shared;

use PHPUnit_Framework_TestCase;
use PHPWord_Shared_File;

/**
Expand Down
1 change: 0 additions & 1 deletion Tests/PHPWord/Shared/FontTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php
namespace PHPWord\Tests\Shared;

use PHPUnit_Framework_TestCase;
use PHPWord;
use PHPWord_Shared_Font;

Expand Down
1 change: 0 additions & 1 deletion Tests/PHPWord/Shared/StringTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php
namespace PHPWord\Tests\Shared;

use PHPUnit_Framework_TestCase;
use PHPWord_Shared_String;

/**
Expand Down
1 change: 0 additions & 1 deletion Tests/PHPWord/Style/CellTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php
namespace PHPWord\Tests\Style;

use PHPUnit_Framework_TestCase;
use PHPWord_Style_Cell;

/**
Expand Down
1 change: 0 additions & 1 deletion Tests/PHPWord/Style/FontTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php
namespace PHPWord\Tests\Style;

use PHPUnit_Framework_TestCase;
use PHPWord;
use PHPWord_Style_Font;
use PHPWord\Tests\TestHelperDOCX;
Expand Down
1 change: 0 additions & 1 deletion Tests/PHPWord/Style/ImageTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php
namespace PHPWord\Tests\Style;

use PHPUnit_Framework_TestCase;
use PHPWord_Style_Image;

/**
Expand Down
1 change: 0 additions & 1 deletion Tests/PHPWord/Style/ListItemTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php
namespace PHPWord\Tests\Style;

use PHPUnit_Framework_TestCase;
use PHPWord_Style_ListItem;

/**
Expand Down
1 change: 0 additions & 1 deletion Tests/PHPWord/Style/ParagraphTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php
namespace PHPWord\Tests\Style;

use PHPUnit_Framework_TestCase;
use PHPWord;
use PHPWord_Style_Paragraph;
use PHPWord_Style_Tab;
Expand Down
1 change: 0 additions & 1 deletion Tests/PHPWord/Style/RowTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php
namespace PHPWord\Tests\Style;

use PHPUnit_Framework_TestCase;
use PHPWord_Style_Row;

/**
Expand Down
1 change: 0 additions & 1 deletion Tests/PHPWord/Style/TOCTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php
namespace PHPWord\Tests\Style;

use PHPUnit_Framework_TestCase;
use PHPWord_Style_TOC;

/**
Expand Down
1 change: 0 additions & 1 deletion Tests/PHPWord/Style/TableFullTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php
namespace PHPWord\Tests\Style;

use PHPUnit_Framework_TestCase;
use PHPWord_Style_TableFull;

/**
Expand Down
1 change: 0 additions & 1 deletion Tests/PHPWord/Style/TableTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php
namespace PHPWord\Tests\Style;

use PHPUnit_Framework_TestCase;
use PHPWord_Style_Table;

/**
Expand Down
1 change: 0 additions & 1 deletion Tests/PHPWord/Style/TabsTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php
namespace PHPWord\Tests\Style;

use PHPUnit_Framework_TestCase;
use PHPWord;
use PHPWord_Style_Tab;
use PHPWord_Style_Tabs;
Expand Down
3 changes: 1 addition & 2 deletions Tests/PHPWord/TOCTest.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
<?php
namespace PHPWord\Tests;

use PHPUnit_Framework_TestCase;
use PHPWord_TOC;
use PHPWord_Style_TOC;

/**
* @covers PHPWord_TOC
*/
class TOCTest extends PHPUnit_Framework_TestCase
class TOCTest extends \PHPUnit_Framework_TestCase
{
/**
* @covers PHPWord_TOC::__construct
Expand Down
Loading