public function ErrorHandlerTest::testConstruct

File

drupal/core/vendor/symfony/debug/Symfony/Component/Debug/Tests/ErrorHandlerTest.php, line 24

Class

ErrorHandlerTest
ErrorHandlerTest

Namespace

Symfony\Component\Debug\Tests

Code

public function testConstruct() {
  $handler = ErrorHandler::register(3);
  $level = new \ReflectionProperty($handler, 'level');
  $level
    ->setAccessible(true);
  $this
    ->assertEquals(3, $level
    ->getValue($handler));
  restore_error_handler();
}