Skip to content

Commit

Permalink
Add test for PrintOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
CSchlipp authored Sep 23, 2023
1 parent a680995 commit d3ae8ff
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions tests/Command/PrintOptionsTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php

use Talal\LabelPrinter\Command;

class PrintOptionsTest extends \PHPUnit_Framework_TestCase
{
public function testEnabled()
{
$command = new Command\PrintOptions(true);

$this->assertEquals('5e515331', bin2hex($command->read()));
}

public function testDisabled()
{
$command = new Command\PrintOptions(false);

$this->assertEquals('5e515330', bin2hex($command->read()));
}
}

0 comments on commit d3ae8ff

Please sign in to comment.