setOutput(new OutputStyle(new ArrayInput([]), new NullOutput)); $method = new ReflectionMethod($command, 'processFile'); $payload = $method->invoke($command, 'activepieces.yaml'); $expectedTimestamp = Process::run([ 'git', 'log', '-1', '--format=%cI', '--', 'templates/compose/activepieces.yaml', ])->throw()->output(); expect($payload) ->toHaveKey('template_last_updated_at') ->and($payload['template_last_updated_at']) ->toBe(trim($expectedTimestamp)); });