Skip to content

Commit

Permalink
chore(deps): support common protos 4.0 (#460)
Browse files Browse the repository at this point in the history
  • Loading branch information
bshaffer authored May 1, 2023
1 parent 18edc2c commit af1db80
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
"require": {
"php": ">=7.4",
"google/auth": "^1.25.0",
"google/grpc-gcp": "^0.3",
"google/grpc-gcp": "^0.2||^0.3",
"grpc/grpc": "^1.13",
"google/protobuf": "^3.21.4",
"guzzlehttp/promises": "^1.3",
"guzzlehttp/psr7": "^2.0",
"google/common-protos": "^3.0",
"google/common-protos": "^3.0||^4.0",
"google/longrunning": "^0.2"
},
"require-dev": {
Expand Down
18 changes: 9 additions & 9 deletions tests/Tests/Unit/GeneratedTestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
*/
namespace Google\ApiCore\Tests\Unit;

use Google\Api\Monitoring_MonitoringDestination;
use Google\Api\Monitoring\MonitoringDestination;
use Google\ApiCore\Testing\GeneratedTest;
use PHPUnit\Framework\ExpectationFailedException;

Expand Down Expand Up @@ -62,16 +62,16 @@ public function testFailure($expected, $actual)

public function getSuccessCases()
{
$monitoringA = new Monitoring_MonitoringDestination();
$monitoringA = new MonitoringDestination();
$monitoringA->setMonitoredResource("type");
$monitoringB = new Monitoring_MonitoringDestination();
$monitoringB = new MonitoringDestination();
$monitoringB->setMonitoredResource("type");

$emptyRepeatedA = $monitoringA->getMetrics();
$emptyRepeatedB = $monitoringB->getMetrics();

$monitoringC = new Monitoring_MonitoringDestination();
$monitoringD = new Monitoring_MonitoringDestination();
$monitoringC = new MonitoringDestination();
$monitoringD = new MonitoringDestination();

$repeatedC = $monitoringC->getMetrics();
$repeatedC[] = "metric";
Expand All @@ -94,16 +94,16 @@ public function getSuccessCases()

public function getFailureCases()
{
$monitoringA = new Monitoring_MonitoringDestination();
$monitoringA = new MonitoringDestination();
$monitoringA->setMonitoredResource("typeA");
$monitoringB = new Monitoring_MonitoringDestination();
$monitoringB = new MonitoringDestination();
$monitoringB->setMonitoredResource("typeB");

$emptyRepeatedA = $monitoringA->getMetrics();
$emptyRepeatedB = $monitoringB->getMetrics();

$monitoringC = new Monitoring_MonitoringDestination();
$monitoringD = new Monitoring_MonitoringDestination();
$monitoringC = new MonitoringDestination();
$monitoringD = new MonitoringDestination();

$repeatedC = $monitoringC->getMetrics();
$repeatedC[] = "metricA";
Expand Down

0 comments on commit af1db80

Please sign in to comment.