mirror of
https://github.com/parsecsv/parsecsv-for-php.git
synced 2026-02-19 08:36:39 +00:00
Check if output contains HTML table cells
They should if the _books.csv file is found
This commit is contained in:
@@ -78,9 +78,14 @@ class ConstructTest extends TestCase {
|
||||
* @see https://github.com/sebastianbergmann/phpunit/issues/720#issuecomment-10421092
|
||||
*/
|
||||
public function testCodeExamples() {
|
||||
foreach (glob('examples/*.php') as $script_file) {
|
||||
chdir('examples');
|
||||
foreach (glob('*.php') as $script_file) {
|
||||
ob_start();
|
||||
/** @noinspection PhpIncludeInspection */
|
||||
require $script_file;
|
||||
if ($script_file != 'download.php') {
|
||||
$this->assertContains('<td>', ob_get_clean());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user