* Test the PHP Parser with different PHP snippets
*/
public void testPHPParser() {
+ checkHTML("<?php print \"Hello world\" ?>");
checkHTML("<?php phpinfo(); ?>");
checkHTML("<?php phpinfo()?>");
checkHTML("<?php phpinfo(); ?> foo <?php phpinfo(); ?>");
checkHTML(" <?php //this is a line comment ?>");
+ checkPHP("echo \"Test\", \"me\";");
+ checkPHP("print (\"Test me\");");
+ checkPHP("$s = <<<HEREDOC \n dskjfhskj\n \n\nHEREDOC;");
+ checkPHP("$a == 0 ? print \"true\" : print \"false\";");
checkPHP("if(!$result = mysql_query($sql)) return(array());");
checkPHP("class test { function &fetchRow($result, $fetchmode = DB_FETCHMODE_DEFAULT, $rownum=null) \n{ \n } \n }");
checkPHP("call_user_method_array($function_name[1], ${$objectname}, $arguments);");