Removed fake namespace from tests class names because we use real namespacing
This commit is contained in:
parent
7abd5be62b
commit
3519477535
|
|
@ -0,0 +1,15 @@
|
||||||
|
<?php
|
||||||
|
namespace PHPWord\Exceptions;
|
||||||
|
|
||||||
|
use InvalidArgumentException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* InvalidStyleException
|
||||||
|
*
|
||||||
|
* Exception used for when a style value is invalid
|
||||||
|
*
|
||||||
|
* @package PHPWord
|
||||||
|
*/
|
||||||
|
class InvalidStyleException extends InvalidArgumentException
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
@ -5,13 +5,14 @@ use PHPUnit_Framework_TestCase;
|
||||||
use PHPWord;
|
use PHPWord;
|
||||||
use PHPWord_IOFactory;
|
use PHPWord_IOFactory;
|
||||||
use PHPWord_Writer_Word2007;
|
use PHPWord_Writer_Word2007;
|
||||||
|
use Exception;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class PHPWord_IOFactoryTest
|
* Class IOFactoryTest
|
||||||
* @package PHPWord\Tests
|
* @package PHPWord\Tests
|
||||||
* @runTestsInSeparateProcesses
|
* @runTestsInSeparateProcesses
|
||||||
*/
|
*/
|
||||||
class PHPWord_IOFactoryTest extends \PHPUnit_Framework_TestCase
|
class IOFactoryTest extends \PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
public function testGetSearchLocations()
|
public function testGetSearchLocations()
|
||||||
{
|
{
|
||||||
|
|
@ -25,7 +26,7 @@ class PHPWord_IOFactoryTest extends \PHPUnit_Framework_TestCase
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @expectedException Exception
|
* @expectedException Exception
|
||||||
* @expectedExceptionMessage Invalid parameter passed.
|
* @expectedExceptionMessage Invalid parameter passed.
|
||||||
*/
|
*/
|
||||||
public function testSetSearchLocationsWithNotArray()
|
public function testSetSearchLocationsWithNotArray()
|
||||||
|
|
@ -41,7 +42,7 @@ class PHPWord_IOFactoryTest extends \PHPUnit_Framework_TestCase
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @expectedException Exception
|
* @expectedException Exception
|
||||||
* @expectedExceptionMessage No IWriter found for type
|
* @expectedExceptionMessage No IWriter found for type
|
||||||
*/
|
*/
|
||||||
public function testCreateWriterException()
|
public function testCreateWriterException()
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ namespace PHPWord\Tests;
|
||||||
use PHPUnit_Framework_TestCase;
|
use PHPUnit_Framework_TestCase;
|
||||||
use PHPWord_Media;
|
use PHPWord_Media;
|
||||||
|
|
||||||
class PHPWord_MediaTest extends \PHPUnit_Framework_TestCase
|
class MediaTest extends \PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
public function testGetSectionMediaElementsWithNull()
|
public function testGetSectionMediaElementsWithNull()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ namespace PHPWord\Tests;
|
||||||
use PHPUnit_Framework_TestCase;
|
use PHPUnit_Framework_TestCase;
|
||||||
use PHPWord_Section;
|
use PHPWord_Section;
|
||||||
|
|
||||||
class PHPWord_SectionTest extends \PHPUnit_Framework_TestCase
|
class SectionTest extends \PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
public function testGetSettings()
|
public function testGetSettings()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,17 @@
|
||||||
<?php
|
<?php
|
||||||
namespace PHPWord\Tests;
|
namespace PHPWord\Tests\Shared;
|
||||||
|
|
||||||
use PHPUnit_Framework_TestCase;
|
use PHPUnit_Framework_TestCase;
|
||||||
use PHPWord;
|
use PHPWord;
|
||||||
use PHPWord_Shared_Font;
|
use PHPWord_Shared_Font;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class PHPWord_Writer_Shared_FontTest
|
* Class FontTest
|
||||||
*
|
*
|
||||||
* @package PHPWord\Tests
|
* @package PHPWord\Tests
|
||||||
* @runTestsInSeparateProcesses
|
* @runTestsInSeparateProcesses
|
||||||
*/
|
*/
|
||||||
class PHPWord_Writer_Shared_FontTest extends \PHPUnit_Framework_TestCase
|
class FontTest extends \PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Test various conversions
|
* Test various conversions
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,16 @@
|
||||||
<?php
|
<?php
|
||||||
namespace PHPWord\Tests;
|
namespace PHPWord\Tests\Style;
|
||||||
|
|
||||||
use PHPUnit_Framework_TestCase;
|
use PHPUnit_Framework_TestCase;
|
||||||
use PHPWord_Style_Cell;
|
use PHPWord_Style_Cell;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class PHPWord_Style_CellTest
|
* Class CellTest
|
||||||
*
|
*
|
||||||
* @package PHPWord\Tests
|
* @package PHPWord\Tests
|
||||||
* @runTestsInSeparateProcesses
|
* @runTestsInSeparateProcesses
|
||||||
*/
|
*/
|
||||||
class PHPWord_Style_CellTest extends \PHPUnit_Framework_TestCase
|
class CellTest extends \PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Test setting style with normal value
|
* Test setting style with normal value
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,17 @@
|
||||||
<?php
|
<?php
|
||||||
namespace PHPWord\Tests;
|
namespace PHPWord\Tests\Style;
|
||||||
|
|
||||||
use PHPUnit_Framework_TestCase;
|
use PHPUnit_Framework_TestCase;
|
||||||
use PHPWord;
|
use PHPWord;
|
||||||
use PHPWord_Style_Font;
|
use PHPWord_Style_Font;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class PHPWord_Style_FontTest
|
* Class FontTest
|
||||||
*
|
*
|
||||||
* @package PHPWord\Tests
|
* @package PHPWord\Tests
|
||||||
* @runTestsInSeparateProcesses
|
* @runTestsInSeparateProcesses
|
||||||
*/
|
*/
|
||||||
class PHPWord_Style_FontTest extends \PHPUnit_Framework_TestCase
|
class FontTest extends \PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Test initiation for style type and paragraph style
|
* Test initiation for style type and paragraph style
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,17 @@
|
||||||
<?php
|
<?php
|
||||||
namespace PHPWord\Tests;
|
namespace PHPWord\Tests\Style;
|
||||||
|
|
||||||
use PHPUnit_Framework_TestCase;
|
use PHPUnit_Framework_TestCase;
|
||||||
use PHPWord_Style_Paragraph;
|
use PHPWord_Style_Paragraph;
|
||||||
use PHPWord_Style_Tab;
|
use PHPWord_Style_Tab;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class PHPWord_Style_ParagraphTest
|
* Class ParagraphTest
|
||||||
*
|
*
|
||||||
* @package PHPWord\Tests
|
* @package PHPWord\Tests
|
||||||
* @runTestsInSeparateProcesses
|
* @runTestsInSeparateProcesses
|
||||||
*/
|
*/
|
||||||
class PHPWord_Style_ParagraphTest extends \PHPUnit_Framework_TestCase
|
class ParagraphTest extends \PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Test setting style values with null or empty value
|
* Test setting style values with null or empty value
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ use PHPWord_Template;
|
||||||
/**
|
/**
|
||||||
* @coversDefaultClass PHPWord_Template
|
* @coversDefaultClass PHPWord_Template
|
||||||
*/
|
*/
|
||||||
class PHPWord_TemplateTest extends \PHPUnit_Framework_TestCase
|
class TemplateTest extends \PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @covers ::applyXslStyleSheet
|
* @covers ::applyXslStyleSheet
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,16 @@
|
||||||
<?php
|
<?php
|
||||||
namespace PHPWord\Tests;
|
namespace PHPWord\Tests\Writer\Word2007;
|
||||||
|
|
||||||
use PHPUnit_Framework_TestCase;
|
use PHPUnit_Framework_TestCase;
|
||||||
use PHPWord;
|
use PHPWord;
|
||||||
use PHPWord_Writer_Word2007;
|
use PHPWord\Tests\TestHelperDOCX;
|
||||||
use PHPWord_Writer_Word2007_Base;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class PHPWord_Writer_Word2007_BaseTest
|
* Class BaseTest
|
||||||
* @package PHPWord\Tests
|
* @package PHPWord\Tests
|
||||||
* @runTestsInSeparateProcesses
|
* @runTestsInSeparateProcesses
|
||||||
*/
|
*/
|
||||||
class PHPWord_Writer_Word2007_BaseTest extends \PHPUnit_Framework_TestCase
|
class BaseTest extends \PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Executed before each method of the class
|
* Executed before each method of the class
|
||||||
|
|
@ -109,4 +108,4 @@ class PHPWord_Writer_Word2007_BaseTest extends \PHPUnit_Framework_TestCase
|
||||||
$this->assertEquals($expected, $element->getAttribute('w:val'));
|
$this->assertEquals($expected, $element->getAttribute('w:val'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,18 @@
|
||||||
<?php
|
<?php
|
||||||
namespace PHPWord\Tests;
|
namespace PHPWord\Tests\Writer\Word2007;
|
||||||
|
|
||||||
use PHPUnit_Framework_TestCase;
|
use PHPUnit_Framework_TestCase;
|
||||||
use PHPWord;
|
use PHPWord;
|
||||||
use PHPWord_Writer_Word2007;
|
use PHPWord_Writer_Word2007;
|
||||||
use PHPWord_Writer_Word2007_Document;
|
use PHPWord_Writer_Word2007_Document;
|
||||||
|
use PHPWord\Tests\TestHelperDOCX;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class PHPWord_Writer_Word2007_DocumentTest
|
* Class DocumentTest
|
||||||
* @package PHPWord\Tests
|
* @package PHPWord\Tests
|
||||||
* @runTestsInSeparateProcesses
|
* @runTestsInSeparateProcesses
|
||||||
*/
|
*/
|
||||||
class PHPWord_Writer_Word2007_DocumentTest extends \PHPUnit_Framework_TestCase
|
class DocumentTest extends \PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Executed before each method of the class
|
* Executed before each method of the class
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,16 @@
|
||||||
<?php
|
<?php
|
||||||
namespace PHPWord\Tests;
|
namespace PHPWord\Tests\Writer\Word2007;
|
||||||
|
|
||||||
use PHPUnit_Framework_TestCase;
|
use PHPUnit_Framework_TestCase;
|
||||||
use PHPWord;
|
use PHPWord;
|
||||||
use PHPWord_Writer_Word2007_Styles;
|
use PHPWord\Tests\TestHelperDOCX;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class PHPWord_Writer_Word2007_StylesTest
|
* Class PHPWord_Writer_Word2007_StylesTest
|
||||||
* @package PHPWord\Tests
|
* @package PHPWord\Tests
|
||||||
* @runTestsInSeparateProcesses
|
* @runTestsInSeparateProcesses
|
||||||
*/
|
*/
|
||||||
class PHPWord_Writer_Word2007_StylesTest extends \PHPUnit_Framework_TestCase
|
class StylesTest extends \PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Executed before each method of the class
|
* Executed before each method of the class
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ Changes in branch for release 0.7.1 :
|
||||||
- Bugfix: (Progi1984) GH-89 - Example in README.md is broken
|
- Bugfix: (Progi1984) GH-89 - Example in README.md is broken
|
||||||
- Feature: (RomanSyroeshko) GH-56 GH-57 - Template : Permit to save a template generated as a file (PHPWord_Template::saveAs())
|
- Feature: (RomanSyroeshko) GH-56 GH-57 - Template : Permit to save a template generated as a file (PHPWord_Template::saveAs())
|
||||||
- Feature: (gabrielbull) - Word2007 : Support sections page numbering
|
- Feature: (gabrielbull) - Word2007 : Support sections page numbering
|
||||||
- Feature: (gabrielbull) - Word2007 : Added support for line height
|
- Feature: (gabrielbull) - Word2007 : Added line height methods to mirror the line height settings in Word in the paragraph styling
|
||||||
- Feature: (JillElaine) GH-5 - Word2007 : Added support for page header & page footer height
|
- Feature: (JillElaine) GH-5 - Word2007 : Added support for page header & page footer height
|
||||||
- Feature: (bskrtich) GH-6 GH-66 GH-84 - General : Add ability to manage line breaks after image insertion
|
- Feature: (bskrtich) GH-6 GH-66 GH-84 - General : Add ability to manage line breaks after image insertion
|
||||||
- Feature: (RomanSyroeshko) GH-52 GH-53 GH-85 - Template : Ability to limit number of replacements performed by setValue() method of Template class
|
- Feature: (RomanSyroeshko) GH-52 GH-53 GH-85 - Template : Ability to limit number of replacements performed by setValue() method of Template class
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue