mirror of
https://github.com/parsecsv/parsecsv-for-php.git
synced 2026-02-19 00:36:38 +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();
|
||||
/** @noinspection PhpIncludeInspection */
|
||||
require $script_file;
|
||||
$ob_get_clean = ob_get_clean();
|
||||
if ($script_file != 'download.php') {
|
||||
$this->assertContains('<td>', ob_get_clean());
|
||||
$this->assertContains('<td>', $ob_get_clean);
|
||||
}
|
||||
}
|
||||
chdir('..');
|
||||
|
||||
Reference in New Issue
Block a user