You are here

public function DebugClassLoaderTest::testDeprecatedSuperInSameNamespace in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/debug/Tests/DebugClassLoaderTest.php \Symfony\Component\Debug\Tests\DebugClassLoaderTest::testDeprecatedSuperInSameNamespace()

File

vendor/symfony/debug/Tests/DebugClassLoaderTest.php, line 206

Class

DebugClassLoaderTest

Namespace

Symfony\Component\Debug\Tests

Code

public function testDeprecatedSuperInSameNamespace() {
  set_error_handler('var_dump', 0);
  $e = error_reporting(0);
  trigger_error('', E_USER_NOTICE);
  class_exists('Symfony\\Bridge\\Debug\\Tests\\Fixtures\\ExtendsDeprecatedParent', true);
  error_reporting($e);
  restore_error_handler();
  $lastError = error_get_last();
  unset($lastError['file'], $lastError['line']);
  $xError = array(
    'type' => E_USER_NOTICE,
    'message' => '',
  );
  $this
    ->assertSame($xError, $lastError);
}