diff --git a/tests/methods/ConstructTest.php b/tests/methods/ConstructTest.php index a170310..48330ae 100644 --- a/tests/methods/ConstructTest.php +++ b/tests/methods/ConstructTest.php @@ -1,18 +1,18 @@ assertTrue(is_string($this->csv->file_data)); $this->assertEquals($csv, $this->csv->file_data); } + + /** + * @runInSeparateProcess because download.php uses header() + * + * @see https://github.com/sebastianbergmann/phpunit/issues/720#issuecomment-10421092 + */ + public function testCodeExamples() { + foreach (glob('examples/*.php') as $script_file) { + /** @noinspection PhpIncludeInspection */ + require $script_file; + } + } }