Skip to content

Commit

Permalink
assertions/testing rendering.
Browse files Browse the repository at this point in the history
  • Loading branch information
kiproping committed Apr 3, 2018
1 parent 1b6437b commit 0a1cc4a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/Pslayers/PslayersTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,11 @@ public function testOptionalOutputPath()

$instance->addLayer($backgroundLayer, 0);
$instance->addLayer($gradientLayer, 1);
$instance->render();
$img = $instance->render();

$this->assertInstanceOf(Pslayers::class, $instance);
$this->assertNotEmpty($instance->layers);
$this->assertInstanceOf(LayerCollection::class, $instance->layers);
$this->assertInstanceOf(Imagick::class, $img);
}
}

0 comments on commit 0a1cc4a

Please sign in to comment.