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 1111
1212// These variables are set by the App Engine environment. To test locally,
1313// 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 ' ;
1515$ service = getenv ('GAE_SERVICE ' ) ?: 'error_reporting_quickstart ' ;
1616$ version = getenv ('GAE_VERSION ' ) ?: 'test ' ;
1717
3030Bootstrap::init ($ psrLogger );
3131
3232print ('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 ' );
3434# [END error_reporting_quickstart]
Original file line number Diff line number Diff line change @@ -49,6 +49,6 @@ public function testQuickstart()
4949
5050 // Make sure it worked
5151 $ this ->assertStringContainsString ('Throwing a test exception ' , $ output );
52- $ this ->verifyReportedError (self ::$ projectId , 'quickstart.php test exception ' );
52+ $ this ->verifyReportedError (self ::$ projectId , 'Something went wrong ' );
5353 }
5454}
You can’t perform that action at this time.
0 commit comments