Skip to content

Commit

Permalink
Merge pull request #67 from liberu-genealogy/sweep/Enhance-Test-Infra…
Browse files Browse the repository at this point in the history
…structure-and-Namespace-Organization-in-PHP-GEDCOM-Library

Enhance Test Infrastructure and Namespace Organization in PHP GEDCOM Library
  • Loading branch information
curtisdelicata authored Jan 11, 2025
2 parents a836ee5 + f8017df commit cfc0eba
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
15 changes: 15 additions & 0 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@


<?php

namespace GedcomTest;

use PHPUnit\Framework\TestCase as BaseTestCase;

abstract class TestCase extends BaseTestCase
{
protected function getTestFilePath(string $filename): string
{
return \TEST_DIR . '/stresstestfiles/' . $filename;
}
}
3 changes: 2 additions & 1 deletion tests/WriterTest.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<?php

namespace GedcomTest;

use Gedcom\Gedcom;
use Gedcom\Writer;
use Gedcom\Writer\Head;
use Gedcom\Writer\Sour;
use Gedcom\Writer\Subn;
use PHPUnit\Framework\TestCase;

class WriterTest extends TestCase
{
Expand Down

0 comments on commit cfc0eba

Please sign in to comment.