Skip to content

Commit 87d3c94

Browse files
committed
bypass finals
1 parent 2158573 commit 87d3c94

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

testing/bootstrap.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,12 @@
2222
. 'project root before running "phpunit" to run the samples tests.');
2323
}
2424

25+
// Make sure that while testing we bypass the `final` keyword for the GAPIC client.
26+
DG\BypassFinals::allowPaths([
27+
'*/src/V*/Client/*',
28+
]);
29+
30+
DG\BypassFinals::enable();
31+
2532
require_once __DIR__ . '/vendor/autoload.php';
33+

testing/composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"friendsofphp/php-cs-fixer": "^3.29",
1212
"composer/semver": "^3.2",
1313
"phpstan/phpstan": "^1.10",
14-
"phpspec/prophecy-phpunit": "^2.0"
14+
"phpspec/prophecy-phpunit": "^2.0",
15+
"dg/bypass-finals": " ^1.7"
1516
}
1617
}

0 commit comments

Comments
 (0)