Skip to content

Commit

Permalink
Improve test name
Browse files Browse the repository at this point in the history
  • Loading branch information
senaranya committed Jan 6, 2025
1 parent 585cedf commit b6f7d03
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/MessageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,13 @@ public function subfields_can_be_retained_when_required(): void
}

/** @test */
public function field_separator_should_be_used_in_the_MSH_segment(): void
public function field_separator_specified_should_be_used_in_the_MSH_segment(): void
{
$this->expectException(HL7Exception::class);
$this->expectExceptionMessage('Not a valid message: field separator invalid');
$invalidFieldSeparator = '='; // Can be any character but |
new Message("MSH|^~\\&$invalidFieldSeparator");
$fieldSeparator = '=';
$fieldSeparatorUsedInMsh = '|';
new Message("MSH$fieldSeparatorUsedInMsh^~\\&$fieldSeparator");
}

/** @test */
Expand Down

0 comments on commit b6f7d03

Please sign in to comment.