Skip to content

Commit

Permalink
Fix for the package tests
Browse files Browse the repository at this point in the history
  • Loading branch information
saranshdhingra committed May 23, 2024
1 parent 6198f82 commit 2df887b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion Core/snippet-bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,7 @@
date_default_timezone_set('UTC');

// Make sure that while testing we bypass the `final` keyword for the GAPIC client.
BypassFinals::enable();
// Only run this if the individual component has the helper package installed
if (class_exists(BypassFinals::class)) {
BypassFinals::enable();
}
5 changes: 4 additions & 1 deletion Core/unit-bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,7 @@
\SebastianBergmann\Comparator\Factory::getInstance()->register(new ProtobufGPBEmptyComparator());

// Make sure that while testing we bypass the `final` keyword for the GAPIC client.
BypassFinals::enable();
// Only run this if the individual component has the helper package installed
if (class_exists(BypassFinals::class)) {
BypassFinals::enable();
}

0 comments on commit 2df887b

Please sign in to comment.