@dataProvider flattenDataProvider
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());
}