From ac66a67873bbe52b8ca4224bf8a9230a0b481330 Mon Sep 17 00:00:00 2001 From: kpouer Date: Mon, 11 Aug 2003 21:27:31 +0000 Subject: [PATCH] some new tests added --- .../src/test/PHPParserTestCase2.java | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) 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); -- 1.7.1