public function FlattenExceptionTest::testPrevious in Zircon Profile 8
Same name and namespace in other branches
- 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
Namespace
Symfony\Component\Debug\Tests\ExceptionCode
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());
}