public function FlattenExceptionTest::testRecursionInArguments

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/Exception/FlattenExceptionTest.php, line 114

Class

FlattenExceptionTest

Namespace

Symfony\Component\HttpKernel\Tests\Exception

Code

public function testRecursionInArguments() {
  $a = array(
    'foo',
    array(
      2,
      &$a,
    ),
  );
  $exception = $this
    ->createException($a);
  $flattened = FlattenException::create($exception);
  $trace = $flattened
    ->getTrace();
  $this
    ->assertContains('*DEEP NESTED ARRAY*', serialize($trace));
}