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

37
composer.json Executable file
View File

@@ -0,0 +1,37 @@
{
"name": "peptiderepo/peptide-search-ai",
"description": "Searchable peptide database with AI-powered auto-population for WordPress",
"type": "wordpress-plugin",
"license": "GPL-2.0-or-later",
"authors": [
{
"name": "Terence",
"role": "Lead Developer"
}
],
"require": {
"php": ">=7.4"
},
"require-dev": {
"phpunit/phpunit": "^9.6",
"yoast/phpunit-polyfills": "^2.0",
"squizlabs/php_codesniffer": "^3.7",
"wp-coding-standards/wpcs": "^3.0",
"dealerdirect/phpcodesniffer-composer-installer": "^1.0"
},
"autoload": {
"psr-4": {
"PSA\\": "includes/"
}
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"scripts": {
"test": "phpunit --configuration phpunit.xml",
"lint": "phpcs",
"lint:fix": "phpcbf"
}
}