Updated test: no output in save_to_file_without_header_row.php

Thus, effectively, we just test for valid PHP syntax.
This commit is contained in:
Fonata
2019-02-02 18:47:55 +01:00
parent bc9207de09
commit 2d428ffa93

View File

@@ -59,7 +59,9 @@ class ConstructTest extends TestCase {
/** @noinspection PhpIncludeInspection */
require $script_file;
$ob_get_clean = ob_get_clean();
if ($script_file != 'download.php') {
$verb = strtok($script_file, '_.');
if (!in_array($verb, ['download', 'save'], true)) {
$this->assertContains('<td>', $ob_get_clean);
}
}