Skip to content

Commit

Permalink
Updated test for PdfSectorTrait.
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentmuller committed Jan 9, 2025
1 parent 724f69c commit f5ba432
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## Unreleased

- Updated test for `PdfSectorTrait`.
- Updated `PdfViewerPreferences` class.
- Updated documentation.
- Updated Symfony to version 7.2.1.
Expand Down
8 changes: 8 additions & 0 deletions tests/Traits/PdfSectorTraitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@

class PdfSectorTraitTest extends TestCase
{
public function testDeltaAngleZero(): void
{
$document = new PdfDocumentSector();
$document->addPage();
$document->sector(100, 100, 50, 0, 360);
self::assertSame(1, $document->getPage());
}

public function testEmpty(): void
{
$document = new PdfDocumentSector();
Expand Down

0 comments on commit f5ba432

Please sign in to comment.