Skip to content

Commit

Permalink
bug: laminas#135 Add new test case to show the bug
Browse files Browse the repository at this point in the history
Signed-off-by: codisart <[email protected]>
  • Loading branch information
codisart committed Jan 12, 2023
1 parent ad591e4 commit 147c5cf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/GPSPointTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public function boundariesProvider(): array
['38.8897,-181.0089', false],
['-181.8897,-77.0089', false],
['38.8897,181.0089', false],
['38.8897,181.0089', false],
];
}

Expand Down Expand Up @@ -66,7 +67,7 @@ public function testErrorsSetOnOccur(string $value, string $messageKey, string $
}

/**
* @psalm-return array<array-key, array{0: string}>
* @psalm-return array<array-key, arrayG{0: string}>
*/
public function basicDataProvider(): array
{
Expand All @@ -88,6 +89,7 @@ public function errorMessageTestValues(): array
['63 47 24.691 N, 18 2 54.363 W', GpsPoint::OUT_OF_BOUNDS, '63 47 24.691 N'],
['° \' " N,° \' " E', GpsPoint::CONVERT_ERROR, '° \' " N'],
['° \' " N', GpsPoint::INCOMPLETE_COORDINATE, '° \' " N'],
['foo,bar', GpsPoint::CONVERT_ERROR, '° \' " N'],
];
}
}

0 comments on commit 147c5cf

Please sign in to comment.