php-sdk/tests/Unit/Capability/Discovery/Fixtures
Repository files (latest commit first)
Filename Latest commit message Latest commit date
johnhunt-lc 86bd845924
[Server] Allow overriding the default file name pattern for Discovery (#292)
* Add optional namePatterns capability to discovery so that the default scan for `*.php` files can be overridden.

* add default to namePatterns docs

* add an error check if we manage to pass in an empty list of patterns

* add unit tests (and a static entry to classmap for composer.json so it autoloads from a non .php file for the test)

* run php-cs-fixer

* change how default namePatterns are set and make sure all the annotations are correct

* Fix bad whitespace

Co-authored-by: Christopher Hertel <mail@christopher-hertel.de>

* switch to a const default instead of nullable with a check in the function to convert null to a default

* make sure we handle empty arrays

* formatting fixes

* Apply suggestion from @chr-hertel

Co-authored-by: Christopher Hertel <mail@christopher-hertel.de>

* Add changelog entry

---------

Co-authored-by: Christopher Hertel <mail@christopher-hertel.de>
2026-05-08 09:48:29 +02:00
..
SubDir style: apply php-cs-fixer and PHPStan fixes (#289) 2026-04-20 20:49:15 +02:00
AlternativeFileNameToolHandler.class.inc [Server] Allow overriding the default file name pattern for Discovery (#292) 2026-05-08 09:48:29 +02:00
DiscoverablePromptHandler.php Split testsuite for unit and inspector based tests (#82) 2025-09-25 22:27:41 +01:00
DiscoverableResourceHandler.php Split testsuite for unit and inspector based tests (#82) 2025-09-25 22:27:41 +01:00
DiscoverableTemplateHandler.php Split testsuite for unit and inspector based tests (#82) 2025-09-25 22:27:41 +01:00
DiscoverableToolHandler.php [Schema][Server] Add top-level title to Tool (#288) 2026-04-26 15:37:40 +02:00
EnhancedCompletionHandler.php Split testsuite for unit and inspector based tests (#82) 2025-09-25 22:27:41 +01:00
InvocablePromptFixture.php Split testsuite for unit and inspector based tests (#82) 2025-09-25 22:27:41 +01:00
InvocableResourceFixture.php Split testsuite for unit and inspector based tests (#82) 2025-09-25 22:27:41 +01:00
InvocableResourceTemplateFixture.php Split testsuite for unit and inspector based tests (#82) 2025-09-25 22:27:41 +01:00
InvocableToolFixture.php Split testsuite for unit and inspector based tests (#82) 2025-09-25 22:27:41 +01:00
NonDiscoverableClass.php style: apply php-cs-fixer and PHPStan fixes (#289) 2026-04-20 20:49:15 +02:00