1--TEST-- 2xmlwriter_write_dtd basic function tests 3--EXTENSIONS-- 4xmlwriter 5--FILE-- 6<?php 7 8$xmlwriter = xmlwriter_open_memory(); 9var_dump(xmlwriter_write_dtd($xmlwriter, 'bla1', 'bla2', 'bla3', 'bla4')); 10$output = xmlwriter_flush($xmlwriter, true); 11print $output . PHP_EOL; 12 13var_dump(xmlwriter_write_dtd($xmlwriter, '', '', '')); 14$output = xmlwriter_flush($xmlwriter, true); 15print $output; 16?> 17--CREDITS-- 18Koen Kuipers koenk82@gmail.com 19--EXPECT-- 20bool(true) 21<!DOCTYPE bla1 PUBLIC "bla2" "bla3" [bla4]> 22bool(false) 23