* Test the PHP Parser with different PHP snippets
*/
public void testPHPParser() {
- checkPHP("switch ($aItem[ELM_NAME]) {\r\n" +
+ checkPHP("$test=\"{4IP}/{$include}\";");
+ checkPHP("$this->mRegex = \"/{$this->mBaseRegex}/{$case}\";");
+ checkPHP("$schema_create .= \" DEFAULT \'$row[Default]\'\";");
+ checkPHP("$stringVar=\"ein normaler $varText\";");
+ checkPHP("$stringVar=\'ein normaler $varText\';");
+ checkPHP("switch ($aItem[ELM_NAME]) {\r\n" +
" case \'channel\':\r\n" +
" $this->readChannel($aItem);\r\n" +
" break;\r\n" +
checkPHP("try {echo $Stream->readAll(); } catch (Exception $e) {\r\n" +
" // Swallow exception\r\n" +
" }");
- checkPHP("$this->mRegex = \"/{$this->mBaseRegex}/{$case}\";");
- checkPHP("$schema_create .= \" DEFAULT \'$row[Default]\'\";");
+
checkHTML("<?php\n"+
" function overLib($path = \"\") {\n" +
"\n" +