27 lines
1.0 KiB
PHP
Generated
27 lines
1.0 KiB
PHP
Generated
<?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);
|
|
|
|
// Load the e2e project autoloader (PHPUnit, test helpers).
|
|
require_once __DIR__ . '/vendor/autoload.php';
|
|
|
|
// Load the PHP binding package classes via its Composer autoloader.
|
|
// The package's autoloader is separate from the e2e project's autoloader
|
|
// since the php-ext type prevents direct composer path dependency.
|
|
$pkgAutoloader = __DIR__ . '/../../packages/php/vendor/autoload.php';
|
|
if (file_exists($pkgAutoloader)) {
|
|
require_once $pkgAutoloader;
|
|
}
|
|
// Change to the configured test-documents directory so that fixture file
|
|
// paths like "pdf/fake_memo.pdf" resolve correctly when running phpunit
|
|
// from e2e/php/.
|
|
$_test_documents = __DIR__ . '/../../test_documents';
|
|
if (is_dir($_test_documents)) {
|
|
chdir($_test_documents);
|
|
}
|