From a81396241f8b2caf70988b1979e1927e5c8e9398 Mon Sep 17 00:00:00 2001 From: Greg Roach Date: Tue, 6 Dec 2022 13:36:20 +0000 Subject: Add minimal test scripts for every class, to pick up PHP version issues --- .../CommonMark/CensusTableContinueParserTest.php | 35 ++++++++++++++++++++++ tests/app/CommonMark/CensusTableExtensionTest.php | 35 ++++++++++++++++++++++ .../app/CommonMark/CensusTableStartParserTest.php | 35 ++++++++++++++++++++++ tests/app/CommonMark/XrefExtensionTest.php | 35 ++++++++++++++++++++++ tests/app/CommonMark/XrefNodeTest.php | 35 ++++++++++++++++++++++ tests/app/CommonMark/XrefParserTest.php | 35 ++++++++++++++++++++++ tests/app/CommonMark/XrefRendererTest.php | 35 ++++++++++++++++++++++ 7 files changed, 245 insertions(+) create mode 100644 tests/app/CommonMark/CensusTableContinueParserTest.php create mode 100644 tests/app/CommonMark/CensusTableExtensionTest.php create mode 100644 tests/app/CommonMark/CensusTableStartParserTest.php create mode 100644 tests/app/CommonMark/XrefExtensionTest.php create mode 100644 tests/app/CommonMark/XrefNodeTest.php create mode 100644 tests/app/CommonMark/XrefParserTest.php create mode 100644 tests/app/CommonMark/XrefRendererTest.php (limited to 'tests/app/CommonMark') diff --git a/tests/app/CommonMark/CensusTableContinueParserTest.php b/tests/app/CommonMark/CensusTableContinueParserTest.php new file mode 100644 index 0000000000..3208c8895d --- /dev/null +++ b/tests/app/CommonMark/CensusTableContinueParserTest.php @@ -0,0 +1,35 @@ +. + */ + +declare(strict_types=1); + +namespace Fisharebest\Webtrees\CommonMark; + +use Fisharebest\Webtrees\TestCase; + +/** + * Test harness for the class CensusTableContinueParser + * + * @covers Fisharebest\Webtrees\CommonMark\CensusTableContinueParser + */ +class CensusTableContinueParserTest extends TestCase +{ + public function testClass(): void + { + $this->assertTrue(class_exists(\Fisharebest\Webtrees\CommonMark\CensusTableContinueParser::class)); + } +} diff --git a/tests/app/CommonMark/CensusTableExtensionTest.php b/tests/app/CommonMark/CensusTableExtensionTest.php new file mode 100644 index 0000000000..34d74db29e --- /dev/null +++ b/tests/app/CommonMark/CensusTableExtensionTest.php @@ -0,0 +1,35 @@ +. + */ + +declare(strict_types=1); + +namespace Fisharebest\Webtrees\CommonMark; + +use Fisharebest\Webtrees\TestCase; + +/** + * Test harness for the class CensusTableExtension + * + * @covers Fisharebest\Webtrees\CommonMark\CensusTableExtension + */ +class CensusTableExtensionTest extends TestCase +{ + public function testClass(): void + { + $this->assertTrue(class_exists(\Fisharebest\Webtrees\CommonMark\CensusTableExtension::class)); + } +} diff --git a/tests/app/CommonMark/CensusTableStartParserTest.php b/tests/app/CommonMark/CensusTableStartParserTest.php new file mode 100644 index 0000000000..3cfcf491cb --- /dev/null +++ b/tests/app/CommonMark/CensusTableStartParserTest.php @@ -0,0 +1,35 @@ +. + */ + +declare(strict_types=1); + +namespace Fisharebest\Webtrees\CommonMark; + +use Fisharebest\Webtrees\TestCase; + +/** + * Test harness for the class CensusTableStartParser + * + * @covers Fisharebest\Webtrees\CommonMark\CensusTableStartParser + */ +class CensusTableStartParserTest extends TestCase +{ + public function testClass(): void + { + $this->assertTrue(class_exists(\Fisharebest\Webtrees\CommonMark\CensusTableStartParser::class)); + } +} diff --git a/tests/app/CommonMark/XrefExtensionTest.php b/tests/app/CommonMark/XrefExtensionTest.php new file mode 100644 index 0000000000..9e7c766711 --- /dev/null +++ b/tests/app/CommonMark/XrefExtensionTest.php @@ -0,0 +1,35 @@ +. + */ + +declare(strict_types=1); + +namespace Fisharebest\Webtrees\CommonMark; + +use Fisharebest\Webtrees\TestCase; + +/** + * Test harness for the class XrefExtension + * + * @covers Fisharebest\Webtrees\CommonMark\XrefExtension + */ +class XrefExtensionTest extends TestCase +{ + public function testClass(): void + { + $this->assertTrue(class_exists(\Fisharebest\Webtrees\CommonMark\XrefExtension::class)); + } +} diff --git a/tests/app/CommonMark/XrefNodeTest.php b/tests/app/CommonMark/XrefNodeTest.php new file mode 100644 index 0000000000..2ccfe814f7 --- /dev/null +++ b/tests/app/CommonMark/XrefNodeTest.php @@ -0,0 +1,35 @@ +. + */ + +declare(strict_types=1); + +namespace Fisharebest\Webtrees\CommonMark; + +use Fisharebest\Webtrees\TestCase; + +/** + * Test harness for the class XrefNode + * + * @covers Fisharebest\Webtrees\CommonMark\XrefNode + */ +class XrefNodeTest extends TestCase +{ + public function testClass(): void + { + $this->assertTrue(class_exists(\Fisharebest\Webtrees\CommonMark\XrefNode::class)); + } +} diff --git a/tests/app/CommonMark/XrefParserTest.php b/tests/app/CommonMark/XrefParserTest.php new file mode 100644 index 0000000000..1996d10950 --- /dev/null +++ b/tests/app/CommonMark/XrefParserTest.php @@ -0,0 +1,35 @@ +. + */ + +declare(strict_types=1); + +namespace Fisharebest\Webtrees\CommonMark; + +use Fisharebest\Webtrees\TestCase; + +/** + * Test harness for the class XrefParser + * + * @covers Fisharebest\Webtrees\CommonMark\XrefParser + */ +class XrefParserTest extends TestCase +{ + public function testClass(): void + { + $this->assertTrue(class_exists(\Fisharebest\Webtrees\CommonMark\XrefParser::class)); + } +} diff --git a/tests/app/CommonMark/XrefRendererTest.php b/tests/app/CommonMark/XrefRendererTest.php new file mode 100644 index 0000000000..d6320edcdb --- /dev/null +++ b/tests/app/CommonMark/XrefRendererTest.php @@ -0,0 +1,35 @@ +. + */ + +declare(strict_types=1); + +namespace Fisharebest\Webtrees\CommonMark; + +use Fisharebest\Webtrees\TestCase; + +/** + * Test harness for the class XrefRenderer + * + * @covers Fisharebest\Webtrees\CommonMark\XrefRenderer + */ +class XrefRendererTest extends TestCase +{ + public function testClass(): void + { + $this->assertTrue(class_exists(\Fisharebest\Webtrees\CommonMark\XrefRenderer::class)); + } +} -- cgit v1.3