Detect leakage of error_reporting state in tests.

This causes PHPUnit test cases to fail if they changed the PHP 
error_reporting settings, and failed to restore it.

Change-Id: I34068eac94c974a461af0ff5753d9fcaa375f2e4
Merge "Detect leakage of error_reporting state in tests."