Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance Test Infrastructure and Namespace Organization in PHP GEDCOM Library #67

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading