Skip to content

Commit

Permalink
chore: add support for PHPUnit 8 (#5252)
Browse files Browse the repository at this point in the history
  • Loading branch information
bshaffer authored May 13, 2022
1 parent c5b71a7 commit 72520cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"google/gax": "^1.1"
},
"require-dev": {
"phpunit/phpunit": "^4.8|^5.0",
"phpunit/phpunit": "^4.8|^5.0|^8.0",
"yoast/phpunit-polyfills": "^1.0",
"google/cloud-core": "^1.39",
"phpdocumentor/reflection": "^3.0"
},
Expand Down
4 changes: 2 additions & 2 deletions tests/Unit/BootstrapTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
use Google\Cloud\ErrorReporting\MockValues;
use Google\Cloud\Logging\PsrLogger;
use Prophecy\Argument;
use PHPUnit\Framework\TestCase;
use Yoast\PHPUnitPolyfills\TestCases\TestCase;

//@codingStandardsIgnoreStart
require_once __DIR__ . '/fakeGlobalFunctions.php';
Expand All @@ -37,7 +37,7 @@ class BootstrapTest extends TestCase
private $psrBatchLogger;
private $metadataProvider;

public function setUp()
public function set_up()
{
$this->psrBatchLogger = $this->prophesize(PsrLogger::class);
}
Expand Down

0 comments on commit 72520cd

Please sign in to comment.