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,"'; ?>"); parser.parseInfo(null,""); parser.parseInfo(null,""); parser.parseInfo(null,""); parser.parseInfo(null,""); parser.parseInfo(null,""); parser.parseInfo(null,""); } }