51 lines
1.2 KiB
PHP
51 lines
1.2 KiB
PHP
|
|
<?php
|
||
|
|
// This file is auto-generated by alef — DO NOT EDIT.
|
||
|
|
// alef:hash:4e15143f4af1ae8bafbdb1506ef057da924484c66a19483966333558ad437e75
|
||
|
|
// To regenerate: alef generate
|
||
|
|
// To verify freshness: alef verify --exit-code
|
||
|
|
// Issues & docs: https://github.com/kreuzberg-dev/alef
|
||
|
|
|
||
|
|
|
||
|
|
declare(strict_types=1);
|
||
|
|
|
||
|
|
namespace Kreuzberg\E2e;
|
||
|
|
|
||
|
|
use PHPUnit\Framework\TestCase;
|
||
|
|
use Kreuzberg\Kreuzberg;
|
||
|
|
use Kreuzberg\ExtractionConfig;
|
||
|
|
|
||
|
|
/** E2e tests for category: ocr_backend_management. */
|
||
|
|
final class OcrBackendManagementTest extends TestCase
|
||
|
|
{
|
||
|
|
|
||
|
|
/** Clear all OCR backends and verify list is empty */
|
||
|
|
public function test_ocr_backends_clear(): void
|
||
|
|
{
|
||
|
|
$this->expectNotToPerformAssertions();
|
||
|
|
$result = Kreuzberg::clearOcrBackends();
|
||
|
|
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
/** List all registered OCR backends */
|
||
|
|
public function test_ocr_backends_list(): void
|
||
|
|
{
|
||
|
|
$this->expectNotToPerformAssertions();
|
||
|
|
$result = Kreuzberg::listOcrBackends();
|
||
|
|
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
/** Unregister nonexistent OCR backend gracefully */
|
||
|
|
public function test_ocr_backends_unregister(): void
|
||
|
|
{
|
||
|
|
$this->expectNotToPerformAssertions();
|
||
|
|
$result = Kreuzberg::unregisterOcrBackend("nonexistent-backend-xyz");
|
||
|
|
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|