public function FlattenExceptionTest::testTooBigArray 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::testTooBigArray()
File
- vendor/
symfony/ debug/ Tests/ Exception/ FlattenExceptionTest.php, line 189
Class
Namespace
Symfony\Component\Debug\Tests\ExceptionCode
public function testTooBigArray() {
$a = array();
for ($i = 0; $i < 20; ++$i) {
for ($j = 0; $j < 50; ++$j) {
for ($k = 0; $k < 10; ++$k) {
$a[$i][$j][$k] = 'value';
}
}
}
$a[20] = 'value';
$a[21] = 'value1';
$exception = $this
->createException($a);
$flattened = FlattenException::create($exception);
$trace = $flattened
->getTrace();
$serializeTrace = serialize($trace);
$this
->assertContains('*SKIPPED over 10000 entries*', $serializeTrace);
$this
->assertNotContains('*value1*', $serializeTrace);
}