You are here

public function FlattenExceptionTest::testRecursionInArguments in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/debug/Tests/Exception/FlattenExceptionTest.php \Symfony\Component\Debug\Tests\Exception\FlattenExceptionTest::testRecursionInArguments()

File

vendor/symfony/debug/Tests/Exception/FlattenExceptionTest.php, line 179

Class

FlattenExceptionTest

Namespace

Symfony\Component\Debug\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));
}