diff options
| author | Greg Roach <greg@subaqua.co.uk> | 2022-03-15 21:35:39 +0000 |
|---|---|---|
| committer | Greg Roach <greg@subaqua.co.uk> | 2022-03-15 21:35:39 +0000 |
| commit | aa377663ff1fc90fa5c3d99a82364bebaa2ff1c9 (patch) | |
| tree | feae7d9eaac581447220f1488f2d40cf3aea3687 /tests | |
| parent | d9efec4aaa9aefd6a527c75c15e437b9a1a6604c (diff) | |
| download | webtrees-aa377663ff1fc90fa5c3d99a82364bebaa2ff1c9.tar.gz webtrees-aa377663ff1fc90fa5c3d99a82364bebaa2ff1c9.tar.bz2 webtrees-aa377663ff1fc90fa5c3d99a82364bebaa2ff1c9.zip | |
GEDCOM files created by LifeLines 3 do not have CHAR definitions. Assume ASCII
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/app/Factories/EncodingFactoryTest.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/app/Factories/EncodingFactoryTest.php b/tests/app/Factories/EncodingFactoryTest.php index d7dc07fac0..7cd6cc53cb 100644 --- a/tests/app/Factories/EncodingFactoryTest.php +++ b/tests/app/Factories/EncodingFactoryTest.php @@ -96,6 +96,19 @@ class EncodingFactoryTest extends TestCase } /** + * @covers \Fisharebest\Webtrees\Factories\EncodingFactory::detect + */ + public function testMissingCharHeader(): void + { + $factory = new EncodingFactory(); + + static::assertInstanceOf( + ASCII::class, + $factory->detect("0 HEAD\n0 TRLR") + ); + } + + /** * @covers \Fisharebest\Webtrees\Factories\EncodingFactory::make */ public function testMake(): void |
