Skip to content

Commit 2098ae5

Browse files
Copilotandersonls
andauthored
Add test coverage for drawCell with null align parameter (#41)
* Add test case for drawCell with null align parameter --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: andersonls <1561038+andersonls@users.noreply.github.com>
1 parent dd18300 commit 2098ae5

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

tests/ZplTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,14 @@ public function drawCell(): void
110110
$this->assertEquals("^XA\n^FO0,0^GB100,10,3,B,0^FS\n^FO10,2.5\n^FB90,7.5,0,C\n^FH^FDHello World^FS\n^XZ\n", $this->getZpl());
111111
}
112112

113+
#[Test]
114+
public function drawCellWithNullAlign(): void
115+
{
116+
$this->driver->drawCell(100, 10, 'Hello World', true, true);
117+
118+
$this->assertEquals("^XA\n^FO0,0^GB100,10,3,B,0^FS\n^FO10,2.5\n^FH^FDHello World^FS\n^XZ\n", $this->getZpl());
119+
}
120+
113121
#[Test]
114122
public function drawCellWithEspecialCharacters(): void
115123
{

0 commit comments

Comments
 (0)