ALPHA 3.0.2a

This commit is contained in:
TheGamecraft
2018-09-10 08:51:18 -04:00
parent 7fe13ae0a7
commit 0e0ef86b71
1404 changed files with 10604 additions and 33714 deletions

View File

@@ -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();
}