test: 전투 차등 계측 범위를 엄격하게 보강한다

fixture 시각을 DB 변경 없이 고정하고 활성 스킬과 fixture identity를 노출해 Core의 전체 상태·RNG·로그 비교가 첫 차이에서 실패하도록 한다.
This commit is contained in:
2026-08-24 03:35:39 +00:00
parent a041a8132f
commit a0b6a48a51
3 changed files with 55 additions and 5 deletions
+18
View File
@@ -120,6 +120,24 @@ class WarUnit
return $this->logActivatedSkill;
}
/**
* Comparison traces observe a phase before clearActivatedSkill() runs.
* Keep the product-facing cumulative accessor above unchanged, while
* exposing the canonical logged + currently-active view used by Core's
* WarBattleTraceUnitSnapshot.
*/
function getActivatedSkillTraceSnapshot(): array
{
$snapshot = $this->logActivatedSkill;
foreach ($this->activatedSkill as $skillName => $state) {
if (!$state) {
continue;
}
$snapshot[$skillName] = ($snapshot[$skillName] ?? 0) + 1;
}
return $snapshot;
}
function getRawNation(): array
{
return $this->rawNation;