Fix unit tests

This commit is contained in:
Ivan Lanin 2014-05-14 20:18:35 +07:00
parent f9123d2f2e
commit 4edf8ed9b4
4 changed files with 5 additions and 5 deletions

View File

@ -168,7 +168,7 @@ class CellTest extends \PHPUnit_Framework_TestCase
{
$oCell = new Cell();
$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());

View File

@ -119,7 +119,7 @@ class FooterTest extends \PHPUnit_Framework_TestCase
{
$oFooter = new Footer(1);
$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());

View File

@ -128,7 +128,7 @@ class HeaderTest extends \PHPUnit_Framework_TestCase
{
$oHeader = new Header(1);
$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());

View File

@ -14,7 +14,7 @@
* @copyright 2010-2014 PHPWord contributors
* @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;
@ -35,7 +35,7 @@ class PartTest extends \PHPUnit_Framework_TestCase
public function testRelsWriteRelException()
{
$object = new RelsPart();
$object->setMedia(array(array('foo' => 'bar')));
$object->setMedia(array(array('type' => '', 'target' => '')));
$object->write();
}
}