File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 11
11
12
12
// These variables are set by the App Engine environment. To test locally,
13
13
// ensure these are set or manually change their values.
14
- $ projectId = getenv ('GCLOUD_PROJECT ' ) ?: 'YOUR_PROJECT_ID ' ;
14
+ $ projectId = getenv ('GOOGLE_CLOUD_PROJECT ' ) ?: 'YOUR_PROJECT_ID ' ;
15
15
$ service = getenv ('GAE_SERVICE ' ) ?: 'error_reporting_quickstart ' ;
16
16
$ version = getenv ('GAE_VERSION ' ) ?: 'test ' ;
17
17
30
30
Bootstrap::init ($ psrLogger );
31
31
32
32
print ('Throwing a test exception. You can view the message at https://console.cloud.google.com/errors. ' . PHP_EOL );
33
- throw new Exception ('quickstart.php test exception ' );
33
+ throw new Exception ('Something went wrong ' );
34
34
# [END error_reporting_quickstart]
Original file line number Diff line number Diff line change @@ -49,6 +49,6 @@ public function testQuickstart()
49
49
50
50
// Make sure it worked
51
51
$ this ->assertStringContainsString ('Throwing a test exception ' , $ output );
52
- $ this ->verifyReportedError (self ::$ projectId , 'quickstart.php test exception ' );
52
+ $ this ->verifyReportedError (self ::$ projectId , 'Something went wrong ' );
53
53
}
54
54
}
You can’t perform that action at this time.
0 commit comments