Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
pionl committed Feb 24, 2023
1 parent d52c301 commit d0deaa4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Device/AbstractDevice.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ abstract class AbstractDevice
/**
* The Ghostscript object.
*/
private GhostscriptInterface $ghostscript;
protected GhostscriptInterface $ghostscript;

/**
* The arguments object.
Expand Down
2 changes: 1 addition & 1 deletion tests/src/Device/DeviceTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ protected function getGhostscript(?string $version): Ghostscript|MockObject
} else {
$ghostscript = $this->createPartialMock(Ghostscript::class, ['getVersion']);

$ghostscript->expects($this->once())
$ghostscript->expects($this->atLeastOnce())
->method('getVersion')
->will($this->returnValue($version));
}
Expand Down

0 comments on commit d0deaa4

Please sign in to comment.