Skip to content

Commit

Permalink
Add tests for the constants
Browse files Browse the repository at this point in the history
Provides regression testing
  • Loading branch information
caendesilva committed Feb 8, 2023
1 parent b60b017 commit 992eccd
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/publications/tests/Feature/InputStreamHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,16 @@ public function testTerminationMessage()
$this->assertSame($expected, InputStreamHandler::terminationMessage());
}

public function testTerminationSequenceConstant()
{
$this->assertSame('<<<', InputStreamHandler::TERMINATION_SEQUENCE);
}

public function testEndOfTransmissionConstant()
{
$this->assertSame("\x04", InputStreamHandler::END_OF_TRANSMISSION);
}

protected function makeCommand(array $expected): TestCommand
{
$command = new TestCommand;
Expand Down

0 comments on commit 992eccd

Please sign in to comment.