phpunit: Fix failing DeprecatedGlobalTest on HHVM at Travis CI
authorTimo Tijhof <krinklemail@gmail.com>
Sat, 29 Jul 2017 01:02:28 +0000 (18:02 -0700)
committerTimo Tijhof <krinklemail@gmail.com>
Sat, 29 Jul 2017 01:30:32 +0000 (18:30 -0700)
commit3b9d758274ed1eca11b40f10810b7c0dd6aaca7a
treedbb9ab3aff87baa5d956e089367426537f6d1c75
parentbe656c67a2dde9924e8558563162616ab3ab88dc
phpunit: Fix failing DeprecatedGlobalTest on HHVM at Travis CI

Follows-up 1d77070f19e3. On Travis CI, this test fails on HHVM:

> There was 1 failure:
> 1) DeprecatedGlobalTest::testWarning
> Failed asserting that exception of type "PHPUnit_Framework_Error" is thrown.

I've been unable to reproduce this locally, but within Travis CI
it happens on both Trusty containers and Trusty VMs, no matter the
version of HHVM. After some trial and error, I narrowed it down
to the error_reporting setting, which presumably has a different default
in the HHVM package Travis CI uses.

Change-Id: I588218103d6c72df5ad4fb6289df688b3740233e
tests/phpunit/includes/DeprecatedGlobalTest.php