PHPWord/tests/PhpWord/Tests/Exception/InvalidImageExceptionTest.php

33 lines
843 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\Exception;
use PhpOffice\PhpWord\Exception\InvalidImageException;
/**
* Test class for PhpOffice\PhpWord\Exception\InvalidImageException
*
* @coversDefaultClass \PhpOffice\PhpWord\Exception\InvalidImageException
* @runTestsInSeparateProcesses
*/
class InvalidImageExceptionTest extends \PHPUnit_Framework_TestCase
{
/**
* Throw new exception
*
* @expectedException \PhpOffice\PhpWord\Exception\InvalidImageException
* @covers \PhpOffice\PhpWord\Exception\InvalidImageException
*/
public function testThrowException()
{
throw new InvalidImageException;
}
}