test: add PHPUnit infrastructure and unit tests for config and AI generator

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
peptiderepo
2026-04-11 18:53:24 +07:00
parent 4f894f255e
commit 8e8d72e683
5 changed files with 533 additions and 0 deletions

21
phpunit.xml Executable file
View File

@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.5/phpunit.xsd"
bootstrap="tests/bootstrap.php"
colors="true"
verbose="true"
stopOnFailure="false">
<testsuites>
<testsuite name="Peptide Search AI Unit Tests">
<directory>tests/unit/</directory>
</testsuite>
</testsuites>
<coverage processUncoveredFiles="true">
<include>
<directory suffix=".php">includes/</directory>
</include>
<exclude>
<directory>tests/</directory>
</exclude>
</coverage>
</phpunit>