This directory contains the integration conformance test suite (ShowcaseTest.php) and generated client SDK for gapic-showcase.
- Protobuf Compiler (
protoc): Ensureprotocis installed and available in your$PATH. - Dev Dependencies: Ensure dev dependencies are installed:
composer install -d dev/
To generate or update the Showcase client SDK, message classes, and metadata using the PHP CLI tool:
# From the repository root, run the console command:
./dev/google-cloud showcase:generateOptions:
-o, --out-dir <dir>: Output directory relative to repository root (defaults toGax).-p, --showcase-path <dir>: Path to localgapic-showcaserepository (defaults to installed vendor dependency).-g, --generator-path <dir>: Path to localgapic-generator-php(defaults to installed vendor dependency).-a, --googleapis-path <dir>: Path togoogleapisrepository (defaults to submodule ingapic-generator-php).
-
Install and launch the matching
gapic-showcasemock server (with Auto-TLS enabled for PQC tests):# Option 1 (curl) curl -L https://github.com/googleapis/gapic-showcase/releases/download/v0.42.0/gapic-showcase-0.42.0-linux-amd64.tar.gz | tar -zx ./gapic-showcase run --port :7469 --tls --ca-cert-output-file Gax/tests/Conformance/showcase.pem & # Option 2 (go install) go install github.com/googleapis/gapic-showcase/cmd/gapic-showcase@latest gapic-showcase run --port :7469 --tls --ca-cert-output-file Gax/tests/Conformance/showcase.pem &
-
Run the PHPUnit conformance test suite:
vendor/bin/phpunit -c Gax/phpunit-conformance.xml.dist # or from the Gax directory: cd Gax && vendor/bin/phpunit tests/Conformance/ShowcaseTest.php