text("Hello World\n"); $printer->cut(); // Get data out and close the printer $kitchenText = $kitchenPrinter->getData(); $barText = $barPrinter->getData(); $printer->close(); // Should have matching prints to each printer $this->assertEquals("\x1b@Hello World\x0a\x1dVA\x03", $kitchenText); $this->assertEquals("\x1b@Hello World\x0a\x1dVA\x03", $barText); } }