mirror of
https://github.com/parsecsv/parsecsv-for-php.git
synced 2026-02-19 08:36:39 +00:00
PHPUnit: prevent output from download.php to leak
This commit is contained in:
@@ -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('..');
|
||||||
|
|||||||
Reference in New Issue
Block a user