Fix unit tests
This commit is contained in:
parent
f9123d2f2e
commit
4edf8ed9b4
@ -168,7 +168,7 @@ class CellTest extends \PHPUnit_Framework_TestCase
|
|||||||
{
|
{
|
||||||
$oCell = new Cell();
|
$oCell = new Cell();
|
||||||
$element = $oCell->addImage(
|
$element = $oCell->addImage(
|
||||||
'https://assets.mozillalabs.com/Brands-Logos/Thunderbird/logo-only/thunderbird_logo-only_RGB.png'
|
'http://php.net/images/logos/php-med-trans-light.gif'
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->assertCount(1, $oCell->getElements());
|
$this->assertCount(1, $oCell->getElements());
|
||||||
|
|||||||
@ -119,7 +119,7 @@ class FooterTest extends \PHPUnit_Framework_TestCase
|
|||||||
{
|
{
|
||||||
$oFooter = new Footer(1);
|
$oFooter = new Footer(1);
|
||||||
$element = $oFooter->addImage(
|
$element = $oFooter->addImage(
|
||||||
'https://assets.mozillalabs.com/Brands-Logos/Thunderbird/logo-only/thunderbird_logo-only_RGB.png'
|
'http://php.net/images/logos/php-med-trans-light.gif'
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->assertCount(1, $oFooter->getElements());
|
$this->assertCount(1, $oFooter->getElements());
|
||||||
|
|||||||
@ -128,7 +128,7 @@ class HeaderTest extends \PHPUnit_Framework_TestCase
|
|||||||
{
|
{
|
||||||
$oHeader = new Header(1);
|
$oHeader = new Header(1);
|
||||||
$element = $oHeader->addImage(
|
$element = $oHeader->addImage(
|
||||||
'https://assets.mozillalabs.com/Brands-Logos/Thunderbird/logo-only/thunderbird_logo-only_RGB.png'
|
'http://php.net/images/logos/php-med-trans-light.gif'
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->assertCount(1, $oHeader->getElements());
|
$this->assertCount(1, $oHeader->getElements());
|
||||||
|
|||||||
@ -14,7 +14,7 @@
|
|||||||
* @copyright 2010-2014 PHPWord contributors
|
* @copyright 2010-2014 PHPWord contributors
|
||||||
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
|
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
|
||||||
*/
|
*/
|
||||||
namespace PhpOffice\PhpWord\Tests\Writer\Word2007\Part;
|
namespace PhpOffice\PhpWord\Tests\Writer\Word2007;
|
||||||
|
|
||||||
use PhpOffice\PhpWord\Writer\Word2007\Part\RelsPart;
|
use PhpOffice\PhpWord\Writer\Word2007\Part\RelsPart;
|
||||||
|
|
||||||
@ -35,7 +35,7 @@ class PartTest extends \PHPUnit_Framework_TestCase
|
|||||||
public function testRelsWriteRelException()
|
public function testRelsWriteRelException()
|
||||||
{
|
{
|
||||||
$object = new RelsPart();
|
$object = new RelsPart();
|
||||||
$object->setMedia(array(array('foo' => 'bar')));
|
$object->setMedia(array(array('type' => '', 'target' => '')));
|
||||||
$object->write();
|
$object->write();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user