33 lines
809 B
PHP
33 lines
809 B
PHP
<?php
|
|
/**
|
|
* PHPWord
|
|
*
|
|
* @link https://github.com/PHPOffice/PHPWord
|
|
* @copyright 2014 PHPWord
|
|
* @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
|
|
*/
|
|
namespace PhpOffice\PhpWord\Tests\Writer\ODText\Part;
|
|
|
|
use PhpOffice\PhpWord\Writer\ODText\Part\Meta;
|
|
|
|
/**
|
|
* Test class for PhpOffice\PhpWord\Writer\ODText\Part\Meta
|
|
*
|
|
* @coversDefaultClass \PhpOffice\PhpWord\Writer\ODText\Part\Meta
|
|
* @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();
|
|
}
|
|
}
|