← All changes
|
includes/sdk/google/google/cloud-core/snippet-bootstrap.php
+8
-2
1.1.0
→
1.4.2
View file →
| @@ -1,7 +1,13 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -namespace Dudlewebs\WPMCS; | |
| 3 | +namespace Dudlewebs\WPMCS\GCP; | |
| 4 | 4 | |
| 5 | -use Dudlewebs\WPMCS\Google\Cloud\Core\Testing\TestHelpers; | |
| 5 | +use Dudlewebs\WPMCS\GCP\DG\BypassFinals; | |
| 6 | +use Dudlewebs\WPMCS\GCP\Google\Cloud\Core\Testing\TestHelpers; | |
| 6 | 7 | TestHelpers::snippetBootstrap(); |
| 7 | 8 | \date_default_timezone_set('UTC'); |
| 9 | +// Make sure that while testing we bypass the `final` keyword for the GAPIC client. | |
| 10 | +// Only run this if the individual component has the helper package installed | |
| 11 | +if (\class_exists(BypassFinals::class)) { | |
| 12 | + BypassFinals::enable(); | |
| 13 | +} | |