Files
breadcrumb-the-shire/tests/Architecture/AgentSystemContractSupport.php

17 lines
367 B
PHP
Raw Normal View History

2026-03-19 18:52:36 +01:00
<?php
namespace MintyPHP\Tests\Architecture;
trait AgentSystemContractSupport
{
/**
* @return array<string,mixed>
*/
private function decodeAgentJson(string $path): array
{
$decoded = json_decode($this->readProjectFile($path), true);
$this->assertIsArray($decoded, 'Invalid JSON in ' . $path);
return $decoded;
}
}