Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
olivervogel committed Jan 14, 2024
1 parent f9f1483 commit 0ab9a3f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/GifDataStreamTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Intervention\Gif\Blocks\ColorTable;
use Intervention\Gif\Blocks\Header;
use Intervention\Gif\Blocks\LogicalScreenDescriptor;
use Intervention\Gif\Blocks\NetscapeApplicationExtension;
use Intervention\Gif\Blocks\Trailer;
use Intervention\Gif\DisposalMethod;
Expand All @@ -18,6 +19,13 @@ public function testSetGetHeader()
$this->assertInstanceOf(Header::class, $gif->getHeader());
}

public function testSetGetLogicalScreenDescriptor(): void
{
$gif = new GifDataStream();
$gif->setLogicalScreenDescriptor(new LogicalScreenDescriptor());
$this->assertInstanceOf(LogicalScreenDescriptor::class, $gif->getLogicalScreenDescriptor());
}

public function testEncode()
{
$gif = new GifDataStream();
Expand Down

0 comments on commit 0ab9a3f

Please sign in to comment.