2014-04-17 03:47:43 +07:00
|
|
|
<?php
|
|
|
|
|
/**
|
|
|
|
|
* PHPWord
|
|
|
|
|
*
|
|
|
|
|
* @link https://github.com/PHPOffice/PHPWord
|
2014-05-05 12:38:31 +04:00
|
|
|
* @copyright 2010-2014 PHPWord contributors
|
2014-05-04 21:03:28 +04:00
|
|
|
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
|
2014-04-17 03:47:43 +07:00
|
|
|
*/
|
2014-04-30 08:54:38 +07:00
|
|
|
namespace PhpOffice\PhpWord\Tests\Writer\ODText\Part;
|
2014-04-17 03:47:43 +07:00
|
|
|
|
2014-04-30 08:54:38 +07:00
|
|
|
use PhpOffice\PhpWord\Writer\ODText\Part\Meta;
|
2014-04-17 03:47:43 +07:00
|
|
|
|
|
|
|
|
/**
|
2014-04-30 08:54:38 +07:00
|
|
|
* Test class for PhpOffice\PhpWord\Writer\ODText\Part\Meta
|
2014-04-17 03:47:43 +07:00
|
|
|
*
|
2014-04-30 08:54:38 +07:00
|
|
|
* @coversDefaultClass \PhpOffice\PhpWord\Writer\ODText\Part\Meta
|
2014-04-17 03:47:43 +07:00
|
|
|
* @runTestsInSeparateProcesses
|
|
|
|
|
*/
|
|
|
|
|
class MetaTest extends \PHPUnit_Framework_TestCase
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* Test construct with no PhpWord
|
|
|
|
|
*
|
|
|
|
|
* @expectedException \PhpOffice\PhpWord\Exception\Exception
|
|
|
|
|
* @expectedExceptionMessage No PhpWord assigned.
|
|
|
|
|
*/
|
|
|
|
|
public function testConstructNoPhpWord()
|
|
|
|
|
{
|
|
|
|
|
$object = new Meta();
|
|
|
|
|
$object->writeMeta();
|
|
|
|
|
}
|
|
|
|
|
}
|