You are here

public function FlattenExceptionTest::testPrevious 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::testPrevious()

@dataProvider flattenDataProvider

File

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

Class

FlattenExceptionTest

Namespace

Symfony\Component\Debug\Tests\Exception

Code

public function testPrevious(\Exception $exception, $statusCode) {
  $flattened = FlattenException::create($exception);
  $flattened2 = FlattenException::create($exception);
  $flattened
    ->setPrevious($flattened2);
  $this
    ->assertSame($flattened2, $flattened
    ->getPrevious());
  $this
    ->assertSame(array(
    $flattened2,
  ), $flattened
    ->getAllPrevious());
}