2014-03-15 09:27:48 -04:00
|
|
|
<?php
|
2014-03-27 23:55:06 +07:00
|
|
|
/**
|
|
|
|
|
* PHPWord
|
|
|
|
|
*
|
|
|
|
|
* @link https://github.com/PHPOffice/PHPWord
|
|
|
|
|
* @copyright 2014 PHPWord
|
|
|
|
|
* @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
|
|
|
|
|
*/
|
|
|
|
|
|
2014-03-23 11:59:22 -04:00
|
|
|
namespace PhpOffice\PhpWord\Tests\Exceptions;
|
2014-03-15 09:27:48 -04:00
|
|
|
|
|
|
|
|
use PhpOffice\PhpWord\Exceptions\Exception;
|
|
|
|
|
|
2014-03-27 23:55:06 +07:00
|
|
|
/**
|
|
|
|
|
* Test class for PhpOffice\PhpWord\Exceptions\Exception
|
|
|
|
|
*
|
|
|
|
|
* @coversDefaultClass \PhpOffice\PhpWord\Exceptions\Exception
|
|
|
|
|
* @runTestsInSeparateProcesses
|
|
|
|
|
*/
|
2014-03-15 09:27:48 -04:00
|
|
|
class ExceptionTest extends \PHPUnit_Framework_TestCase
|
|
|
|
|
{
|
|
|
|
|
/**
|
2014-03-30 14:15:23 +07:00
|
|
|
* Throw new exception
|
|
|
|
|
*
|
2014-03-15 09:27:48 -04:00
|
|
|
* @expectedException \PhpOffice\PhpWord\Exceptions\Exception
|
2014-03-23 10:32:08 +04:00
|
|
|
* @covers \PhpOffice\PhpWord\Exceptions\Exception
|
2014-03-15 09:27:48 -04:00
|
|
|
*/
|
|
|
|
|
public function testThrowException()
|
|
|
|
|
{
|
|
|
|
|
throw new Exception;
|
|
|
|
|
}
|
2014-03-23 17:37:26 +07:00
|
|
|
}
|