public function FlattenExceptionTest::testPrevious

@dataProvider flattenDataProvider

File

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

Class

FlattenExceptionTest

Namespace

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