gapic-generator
gapic-generator copied to clipboard
fix: use prophecy for php generated unit tests
PHPUnit 5 is still required by Google Cloud PHP since it has support for PHP 5. However in PHP 7.4 the PHPUnit mock builder raises the error Function ReflectionType::__toString() is deprecated
, causing generated unit tests to fail.
This change switches to the Prophecy mock library (bundled with PHPUnit), which has better support for PHP 7.4.
Codecov Report
Merging #3225 into master will increase coverage by
0.00%
. The diff coverage isn/a
.
@@ Coverage Diff @@
## master #3225 +/- ##
=========================================
Coverage 87.12% 87.12%
+ Complexity 6080 6077 -3
=========================================
Files 494 494
Lines 24060 24052 -8
Branches 2613 2613
=========================================
- Hits 20962 20956 -6
+ Misses 2236 2234 -2
Partials 862 862
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update dc019bd...9481acd. Read the comment docs.