public function CKEditorFilterTest::testStress in CKEditor Filter 7
Stress test: a flat list of elements shouldn't cause recursion errors.
File
- ./
ckeditor_filter.test, line 62
Class
Code
public function testStress() {
$content = '';
for ($i = 0; $i < 300; $i++) {
$content .= '<p>' . $i . '</p>';
}
$filtered = _ckeditor_filter_process($content, $this->filter);
$this
->assertIdentical($content, $filtered);
}