From: kpouer Date: Mon, 11 Aug 2003 21:27:31 +0000 (+0000) Subject: some new tests added X-Git-Url: http://git.phpeclipse.com some new tests added --- diff --git a/net.sourceforge.phpeclipse.tests/src/test/PHPParserTestCase2.java b/net.sourceforge.phpeclipse.tests/src/test/PHPParserTestCase2.java index c65b671..eadc984 100644 --- a/net.sourceforge.phpeclipse.tests/src/test/PHPParserTestCase2.java +++ b/net.sourceforge.phpeclipse.tests/src/test/PHPParserTestCase2.java @@ -32,12 +32,15 @@ public class PHPParserTestCase2 extends TestCase { * Test the PHP Parser with different PHP snippets */ public void testPHPParser() { + checkPHP("$a = $$tata;", true); + checkPHP("$$tata=2;", true); checkPHP("$tata;", true); checkPHP("$tata = &new Tutu;", true); checkPHP("$tata = $bobo;", true); - checkPHP("function test() {$id = $this->gogo($titi); echo $id;}", true); + checkPHP("function test($tutu) {$id = $this->gogo($titi); echo $id;}", true); checkPHP("function test() { $tata = $b; echo $b;}", true); checkPHP("function test() { echo $b;}", true); + checkPHP("for(;;) {}", true); //checkHTML(new File("class.adm_gestuser.php")); checkHTML("", true); checkHTML(" ", true); checkHTML("", true); checkHTML(" foo ", true); - // checkHTML(" ",true); + checkHTML(" ",true); //todo : fix this checkHTML("'; ?>",true); checkHTML("", true); checkHTML("", true);