<?php

declare(strict_types=1);

$name = 'app\\common\\service\\tchef\\Config';
if (!class_exists($name, false)) throw new RuntimeException('Tchef Config stub not loaded in this CLI process');
$file = (new ReflectionClass($name))->getFileName();
if ($file !== (string)getenv('POC_EXPECT_PREPEND_FILE')) {
    throw new RuntimeException('Tchef Config class came from an unexpected source');
}
if ($name::load() !== []) throw new RuntimeException('Tchef Config stub did not disable integration');
echo "POC_TCHEF_SAME_PROCESS_STUB_CONFIRMED\n";
