+++ /dev/null
-package test;
-
-import junit.framework.TestCase;
-
-
-/**
- * A test for my php parser.
- * to use it you have to switch PHPParser.PARSER_DEBUG to true and you can also switch the debugging flag
- * of javaCC to true too (you have to regenerate the parser after that)
- * Please never remove any test. If you find something that my parser do not handle correctly,
- * you can tell me or add a test here. Thanks
- * @author Matthieu Casanova
- */
-public class ParserTester extends TestCase {
-
- public void testParser() throws Exception {
- PHPParser parser = new PHPParser();
- parser.parseInfo(null,"<?php mysql_query(\"CREATE DATABASE $DB_TABLE\" ) or print 'Error creating database<br>'; ?>");
- parser.parseInfo(null,"<?php function func($a) {$v1 = $v23;}; ?>");
- parser.parseInfo(null,"<?php $a = !$b; ?>");
- parser.parseInfo(null,"<?php $a = @@!!@@@!@coucou(2); ?>");
- parser.parseInfo(null,"<?php $aname= $out['Name'][$z] = $remote[$j]['Name']; ?>");
- parser.parseInfo(null,"<?php +$b; ?>");
- parser.parseInfo(null,"<?php $a = -$b; ?>");
- }
-}