PHPUnit: prevent output from download.php to leak

This commit is contained in:
Fonata
2018-04-02 14:38:03 +02:00
parent 406e1e415f
commit 60d6458080

View File

@@ -58,8 +58,9 @@ class ConstructTest extends TestCase {
ob_start(); ob_start();
/** @noinspection PhpIncludeInspection */ /** @noinspection PhpIncludeInspection */
require $script_file; require $script_file;
$ob_get_clean = ob_get_clean();
if ($script_file != 'download.php') { if ($script_file != 'download.php') {
$this->assertContains('<td>', ob_get_clean()); $this->assertContains('<td>', $ob_get_clean);
} }
} }
chdir('..'); chdir('..');