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