mirror of
https://gh.wpcy.net/https://github.com/SilverAssist/wp-github-updater.git
synced 2026-05-02 06:14:30 +08:00
- Add comprehensive test suite: 51 tests, 130 assertions, 100% pass rate - Implement real GitHub API integration tests (9 tests) - Add WordPress Test Suite integration with mock plugin - Create test runner script with interactive installation - Consolidate documentation into README, CHANGELOG, and copilot-instructions Test Coverage: - Unit Tests (3): Configuration and core functionality - Integration Tests (22): Real GitHub API, download filters, config integration - WordPress Tests (26): Hooks, filters, and plugin integration Testing Infrastructure: - WordPress Test Suite bootstrap with automatic detection - Mock plugin for realistic WordPress environment testing - Real HTTP requests to production GitHub repositories - Performance verification (< 10ms cached API calls) Documentation: - Centralized all docs into 3 files (README, CHANGELOG, copilot-instructions) - Removed docs/ directory (7 MD files consolidated) - Added testing guide to README Development section - Updated copilot-instructions with documentation policy Real GitHub API Testing: - Repository: SilverAssist/silver-assist-post-revalidate - Tests version fetching, caching, update detection - Validates asset patterns and release metadata - Confirms production repository compatibility Breaking: Requires PHP 8.0+, WordPress 6.0+, PHPUnit 9.6.29
16 lines
461 B
Text
16 lines
461 B
Text
includes:
|
|
- vendor/szepeviktor/phpstan-wordpress/extension.neon
|
|
|
|
parameters:
|
|
level: 8
|
|
paths:
|
|
- src
|
|
excludePaths:
|
|
- tests
|
|
bootstrapFiles:
|
|
- vendor/php-stubs/wordpress-stubs/wordpress-stubs.php
|
|
scanDirectories:
|
|
- vendor/php-stubs/wordpress-stubs
|
|
ignoreErrors:
|
|
# Ignore WP_Error union type issues in some contexts
|
|
- '#Cannot call method get_error_message\(\) on string\|WP_Error\|false#'
|