Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: getsentry/sentry-php
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: bc0ec228b56a0b8ca78013ae99027bde6aab93a7
Choose a base ref
..
head repository: getsentry/sentry-php
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1b5c6f825ef3e6e0a627db6dece79d7d5ad251eb
Choose a head ref
Showing with 7 additions and 6 deletions.
  1. +7 −6 tests/phpt/error_handler_respects_error_reporting.phpt
13 changes: 7 additions & 6 deletions tests/phpt/error_handler_respects_error_reporting.phpt
Original file line number Diff line number Diff line change
@@ -46,19 +46,20 @@ echo 'Triggering silenced error' . PHP_EOL;

@$a++;

$errorReporting = error_reporting(E_ALL & ~E_WARNING);
echo 'Triggering silenced by error_reporting error' . PHP_EOL;
include 'foo.bar';
error_reporting($errorReporting);

$client->getOptions()->setCaptureSilencedErrors(false);

echo 'Triggering silenced error' . PHP_EOL;

@$b++;

$errorReporting = error_reporting(E_ALL & ~E_WARNING);
echo 'Triggering silenced by error_reporting error' . PHP_EOL;
include 'foo.bar';
error_reporting($errorReporting);

?>
--EXPECT--
Triggering silenced error
Transport called
Triggering silenced by error_reporting error
Triggering silenced error
Triggering silenced by error_reporting error