use annotation instead

This commit is contained in:
troosan 2018-05-27 20:53:42 +02:00
parent 65a594d271
commit da604a80c4

View File

@ -521,11 +521,12 @@ class HtmlTest extends \PHPUnit\Framework\TestCase
/** /**
* Test parsing of remote img that can be found locally * Test parsing of remote img that can be found locally
*
* @expectedException \Exception
*/ */
public function testCouldNotLoadImage() public function testCouldNotLoadImage()
{ {
$src = 'https://fakedomain.io/images/firefox.png'; $src = 'https://fakedomain.io/images/firefox.png';
$this->expectException(\Exception::class);
$phpWord = new \PhpOffice\PhpWord\PhpWord(); $phpWord = new \PhpOffice\PhpWord\PhpWord();
$section = $phpWord->addSection(); $section = $phpWord->addSection();