-
-
Notifications
You must be signed in to change notification settings - Fork 359
Add server examples and test case for issue #146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add server-side code examples to complement existing client samples: - server1.php: Basic SOAP server with simple RPC/encoded methods - server2.php: Server with complex types (Person struct, arrays) - server3.php: Server with nested complex types (Order, Customer, Address) - server4.php: Document/literal style server (WS-I compliant) Add comprehensive server tests covering: - Server instantiation and backward compatibility - WSDL configuration and generation - Method registration - Complex type definitions - Fault handling Resolves #74
Add end-to-end tests that verify server functionality by: - Sending actual SOAP requests and validating responses - Testing sayHello and addNumbers methods - Verifying WSDL generation - Testing fault handling for invalid methods - Testing complex type serialization (Person struct) - Validating WSDL XML structure - Testing multiple sequential requests - Testing empty parameter handling These tests require PHP extensions (xml) to run properly. Use: vendor/bin/tester tests/Cases/ -C
Split NusoapServerTest.phpt into separate test files by concern: - Server/NusoapServer.instantiation.phpt - server instantiation tests - Server/NusoapServer.wsdl.phpt - WSDL configuration tests - Server/NusoapServer.register.phpt - method registration tests - Server/NusoapServer.complexTypes.phpt - complex type tests - Server/NusoapServer.fault.phpt - fault handling tests Move E2E tests to dedicated directory: - E2E/NusoapServer.phpt - end-to-end server tests Update Makefile: - Consolidate .PHONY declarations - Add tests directory to lint target
- Require PHP 8.2+ - Add contributte/qa for code style checking - Add contributte/phpstan for static analysis - Update homepage URL to contributte/nusoap - Add minimum-stability and prefer-stable settings
- Add phpstan.neon with level 5 analysis for PHP 8.2+ - Add ruleset.xml with Contributte coding standards
- Add cs target for CodeSniffer with GitHub Actions support - Add csf target for automatic code style fixing - Add phpstan target for static analysis - Keep tests and coverage targets
- Update tests.yml to use reusable nette-tester workflow - Add phpstan.yml for static analysis CI - Add codesniffer.yml for code style CI - Add coverage.yml for code coverage reporting - Remove old lint.yml (replaced by codesniffer) - Add weekly schedule and workflow_dispatch triggers - Add lowest dependency testing
- Add tests/.gitignore for test-specific ignores - Clean up root .gitignore
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.