diff --git a/test/phpunit/ConfigTest.php b/test/phpunit/ConfigConfigTest.php similarity index 97% rename from test/phpunit/ConfigTest.php rename to test/phpunit/ConfigConfigTest.php index 90ecddc..ca6b9c4 100644 --- a/test/phpunit/ConfigTest.php +++ b/test/phpunit/ConfigConfigTest.php @@ -5,7 +5,7 @@ use Gt\Config\Config; use Gt\Config\ConfigSection; -class ConfigTest extends TestCase { +class ConfigConfigTest extends ConfigTestCase { public function testNotPresentByDefault() { $config = new Config(); $this->assertNull($config->get(uniqid())); @@ -66,4 +66,4 @@ public function testTypeSafeGetter() { self::assertEquals("April 5th 1988", $dateTime->format("F jS Y")); self::assertNull($sut->getFloat("nothing-here")); } -} \ No newline at end of file +} diff --git a/test/phpunit/ConfigFactoryTest.php b/test/phpunit/ConfigFactoryConfigTest.php similarity index 96% rename from test/phpunit/ConfigFactoryTest.php rename to test/phpunit/ConfigFactoryConfigTest.php index 10e45bc..d3c43f1 100644 --- a/test/phpunit/ConfigFactoryTest.php +++ b/test/phpunit/ConfigFactoryConfigTest.php @@ -4,7 +4,7 @@ use Gt\Config\ConfigFactory; use Gt\Config\Test\Helper\Helper; -class ConfigFactoryTest extends TestCase { +class ConfigFactoryConfigTest extends ConfigTestCase { public function testCreateForProject():void { $filePath = implode(DIRECTORY_SEPARATOR, [ $this->tmp, @@ -52,4 +52,4 @@ public function testCreateFromPathName():void { self::assertContains("database", $sectionNames); self::assertNotContains("extra", $sectionNames); } -} \ No newline at end of file +} diff --git a/test/phpunit/ConfigSectionTest.php b/test/phpunit/ConfigSectionConfigTest.php similarity index 97% rename from test/phpunit/ConfigSectionTest.php rename to test/phpunit/ConfigSectionConfigTest.php index a29e031..3827ab7 100644 --- a/test/phpunit/ConfigSectionTest.php +++ b/test/phpunit/ConfigSectionConfigTest.php @@ -4,7 +4,7 @@ use Gt\Config\ConfigSection; use BadMethodCallException; -class ConfigSectionTest extends TestCase { +class ConfigSectionConfigTest extends ConfigTestCase { public function testGet() { $data = [ "name" => "unit test", @@ -86,4 +86,4 @@ public function testWith() { self::assertNull($sutOriginal->get("added")); self::assertEquals("new value", $sut->get("added")); } -} \ No newline at end of file +} diff --git a/test/phpunit/TestCase.php b/test/phpunit/ConfigTestCase.php similarity index 88% rename from test/phpunit/TestCase.php rename to test/phpunit/ConfigTestCase.php index a54c398..7985c7c 100644 --- a/test/phpunit/TestCase.php +++ b/test/phpunit/ConfigTestCase.php @@ -4,7 +4,7 @@ use Gt\Config\Test\Helper\Helper; use PHPUnit\Framework\TestCase as PHPUnitTestCase; -class TestCase extends PHPUnitTestCase { +class ConfigTestCase extends PHPUnitTestCase { protected $tmp; protected function setUp():void { diff --git a/test/phpunit/FileWriterTest.php b/test/phpunit/FileWriterConfigTest.php similarity index 95% rename from test/phpunit/FileWriterTest.php rename to test/phpunit/FileWriterConfigTest.php index 9a789ca..7fdcb95 100644 --- a/test/phpunit/FileWriterTest.php +++ b/test/phpunit/FileWriterConfigTest.php @@ -6,7 +6,7 @@ use Gt\Config\FileWriter; use Gt\Config\Test\Helper\Helper; -class FileWriterTest extends TestCase { +class FileWriterConfigTest extends ConfigTestCase { public function testWrite():void { $sectionValues = [ "one" => [ @@ -50,4 +50,4 @@ public function testWrite():void { } } } -} \ No newline at end of file +} diff --git a/test/phpunit/GeneratorTest.php b/test/phpunit/GeneratorConfigTest.php similarity index 97% rename from test/phpunit/GeneratorTest.php rename to test/phpunit/GeneratorConfigTest.php index a0ebb59..db0a2ef 100644 --- a/test/phpunit/GeneratorTest.php +++ b/test/phpunit/GeneratorConfigTest.php @@ -4,7 +4,7 @@ use Gt\Config\Generator; use Gt\Config\InvalidArgumentException; -class GeneratorTest extends TestCase { +class GeneratorConfigTest extends ConfigTestCase { public function testGenerateEmptyArgs() { self::expectException(InvalidArgumentException::class); self::expectExceptionMessage("Not enough arguments supplied"); @@ -50,4 +50,4 @@ public function testGenerate() { self::assertStringContainsString("[testsection]", $contents); self::assertStringContainsString("testkey = \"testvalue\"", $contents); } -} \ No newline at end of file +}