package net.sourceforge.phpeclipse.tests.parser;
/*******************************************************************************
- * Copyright (c) 2002 Klaus Hartlage - www.eclipseproject.de All rights
+ * Copyright (c) 2002 www.phpeclipse.de All rights
* reserved. This program and the accompanying materials are made available
* under the terms of the Common Public License v1.0 which accompanies this
* distribution, and is available at http://www.eclipse.org/legal/cpl-v10.html
* 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" +