Skip to content

Commit

Permalink
Ignore some phpstorm inspections
Browse files Browse the repository at this point in the history
  • Loading branch information
core23 committed Nov 25, 2018
1 parent 9b1989a commit 8834ad0
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
5 changes: 3 additions & 2 deletions tests/Event/OutputEventTest.php
Expand Up @@ -20,11 +20,12 @@ final class OutputEventTest extends TestCase
public function testEvent(): void
{
$dompdf = $this->createMock(Dompdf::class);
$html = "<h1>Foo</h1>Bar <b>baz</b><img src='img/foo'>";
/** @noinspection HtmlRequiredAltAttribute */
/** @noinspection HtmlUnknownTarget */
$html = "<h1>Foo</h1>Bar <b>baz</b><img src='img/foo'>";

$event = new OutputEvent($dompdf, $html);

$this->assertInstanceOf(Dompdf::class, $event->getPdf());
$this->assertSame($dompdf, $event->getPdf());
$this->assertSame($html, $event->getHtml());
}
Expand Down
5 changes: 3 additions & 2 deletions tests/Event/StreamEventTest.php
Expand Up @@ -21,11 +21,12 @@ public function testEvent(): void
{
$dompdf = $this->createMock(Dompdf::class);
$filename = 'file.pdf';
$html = "<h1>Foo</h1>Bar <b>baz</b><img src='img/foo'>";
/** @noinspection HtmlRequiredAltAttribute */
/** @noinspection HtmlUnknownTarget */
$html = "<h1>Foo</h1>Bar <b>baz</b><img src='img/foo'>";

$event = new StreamEvent($dompdf, $filename, $html);

$this->assertInstanceOf(Dompdf::class, $event->getPdf());
$this->assertSame($dompdf, $event->getPdf());
$this->assertSame($filename, $event->getFilename());
$this->assertSame($html, $event->getHtml());
Expand Down
8 changes: 8 additions & 0 deletions tests/Wrapper/DompdfWrapperTest.php
Expand Up @@ -44,6 +44,8 @@ protected function setUp(): void

public function testStreamHtml(): void
{
/** @noinspection HtmlRequiredAltAttribute */
/** @noinspection HtmlUnknownTarget */
$input = "<h1>Foo</h1>Bar <b>baz</b><img src='img/foo'>";

$this->dompdfFactory
Expand All @@ -68,7 +70,11 @@ public function testStreamHtml(): void

public function testStreamHtmlWithImg(): void
{
/** @noinspection HtmlRequiredAltAttribute */
/** @noinspection HtmlUnknownTarget */
$input = "<h1>Foo</h1>Bar <b>baz</b><img src='img/foo'>";
/** @noinspection HtmlRequiredAltAttribute */
/** @noinspection HtmlUnknownTarget */
$output = "<h1>Foo</h1>Bar <b>baz</b><img src='img/foo'>";

$this->dompdfFactory
Expand All @@ -94,6 +100,8 @@ public function testStreamHtmlWithImg(): void

public function testGetPdf(): void
{
/** @noinspection HtmlRequiredAltAttribute */
/** @noinspection HtmlUnknownTarget */
$input = "<h1>Foo</h1>Bar <b>baz</b><img src='img/foo'>";

$this->dompdfFactory
Expand Down

0 comments on commit 8834ad0

Please sign in to comment.