X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fpsy%2Fpsysh%2Ftest%2FException%2FErrorExceptionTest.php;fp=vendor%2Fpsy%2Fpsysh%2Ftest%2FException%2FErrorExceptionTest.php;h=ef9fb9ab4da92e56921a169f51bbc5b4f64228c0;hp=e66319b919b37249ac9e0f9ea026362f46ebd6f8;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/vendor/psy/psysh/test/Exception/ErrorExceptionTest.php b/vendor/psy/psysh/test/Exception/ErrorExceptionTest.php index e66319b91..ef9fb9ab4 100644 --- a/vendor/psy/psysh/test/Exception/ErrorExceptionTest.php +++ b/vendor/psy/psysh/test/Exception/ErrorExceptionTest.php @@ -76,14 +76,14 @@ class ErrorExceptionTest extends \PHPUnit\Framework\TestCase */ public function testThrowExceptionAsErrorHandler($level, $type) { - set_error_handler(['Psy\Exception\ErrorException', 'throwException']); + \set_error_handler(['Psy\Exception\ErrorException', 'throwException']); try { - trigger_error('{whot}', $level); + \trigger_error('{whot}', $level); } catch (ErrorException $e) { $this->assertContains('PHP ' . $type, $e->getMessage()); $this->assertContains('{whot}', $e->getMessage()); } - restore_error_handler(); + \restore_error_handler(); } public function getUserLevels() @@ -110,7 +110,7 @@ class ErrorExceptionTest extends \PHPUnit\Framework\TestCase public function testFromError() { - if (version_compare(PHP_VERSION, '7.0.0', '<')) { + if (\version_compare(PHP_VERSION, '7.0.0', '<')) { $this->markTestSkipped(); }