Scaffold Minecraft game stubs
Add empty per-component subdirectories under src/{Analyser,Log,Parser,Pattern}/Minecraft/
with .gitkeep markers, plus MinecraftDetective stub extending the base Detective with
a TODO body. Smoke test under test/tests/Games/Minecraft/ asserts the detective is
instantiable. Introduces src/Pattern/ as a new top-level component directory.
This commit is contained in:
0
src/Analyser/Minecraft/.gitkeep
Normal file
0
src/Analyser/Minecraft/.gitkeep
Normal file
10
src/Detective/Minecraft/MinecraftDetective.php
Normal file
10
src/Detective/Minecraft/MinecraftDetective.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace IndifferentKetchup\Codex\Detective\Minecraft;
|
||||
|
||||
use IndifferentKetchup\Codex\Detective\Detective;
|
||||
|
||||
class MinecraftDetective extends Detective
|
||||
{
|
||||
// TODO: implement game-specific log type detection
|
||||
}
|
||||
0
src/Log/Minecraft/.gitkeep
Normal file
0
src/Log/Minecraft/.gitkeep
Normal file
0
src/Parser/Minecraft/.gitkeep
Normal file
0
src/Parser/Minecraft/.gitkeep
Normal file
0
src/Pattern/Minecraft/.gitkeep
Normal file
0
src/Pattern/Minecraft/.gitkeep
Normal file
15
test/tests/Games/Minecraft/SmokeTest.php
Normal file
15
test/tests/Games/Minecraft/SmokeTest.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace IndifferentKetchup\Codex\Test\Tests\Games\Minecraft;
|
||||
|
||||
use IndifferentKetchup\Codex\Detective\Minecraft\MinecraftDetective;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class SmokeTest extends TestCase
|
||||
{
|
||||
public function testDetectiveIsInstantiable(): void
|
||||
{
|
||||
$detective = new MinecraftDetective();
|
||||
$this->assertInstanceOf(MinecraftDetective::class, $detective);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user