--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>net.sourceforge.phpeclipse.test</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
--- /dev/null
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Test Fragment
+Bundle-SymbolicName: net.sourceforge.phpeclipse.test
+Bundle-Version: 1.0.0
+Bundle-Vendor: PHPEclipse team
+Fragment-Host: net.sourceforge.phpeclipse;bundle-version="1.0.0"
+Bundle-Localization: plugin
+Require-Bundle: org.eclipse.core.runtime.compatibility,
+ org.eclipse.ui,
+ org.junit,
+ org.eclipse.jface.text,
+ org.eclipse.core.resources
+Bundle-RequiredExecutionEnvironment: J2SE-1.4
--- /dev/null
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .
import net.sourceforge.phpdt.core.compiler.IProblem;
import net.sourceforge.phpdt.internal.compiler.CompilationResult;
import net.sourceforge.phpdt.internal.compiler.DefaultErrorHandlingPolicies;
-import net.sourceforge.phpdt.internal.compiler.ast.CompilationUnitDeclaration;
import net.sourceforge.phpdt.internal.compiler.batch.CompilationUnit;
import net.sourceforge.phpdt.internal.compiler.env.ICompilationUnit;
import net.sourceforge.phpdt.internal.compiler.impl.CompilerOptions;
import net.sourceforge.phpdt.internal.compiler.problem.DefaultProblemFactory;
import net.sourceforge.phpdt.internal.compiler.problem.ProblemReporter;
-// import net.sourceforge.phpdt.core.tests.junit.extension.TestCase;
-// import net.sourceforge.phpdt.internal.compiler.impl.CompilerOptions;
-
public class AbstractCompilerTest extends TestCase {
- private static int possibleComplianceLevels = -1;
-
protected String complianceLevel;
public void checkParsePHP(char[] source, String expectedSyntaxErrorDiagnosis) {
CompilationResult compilationResult = new CompilationResult(sourceUnit,
0, 0, 0);
- CompilationUnitDeclaration computedUnit = parser.dietParse(sourceUnit,
- compilationResult, true);
- // if (computedUnit.types != null) {
- // for (int i = computedUnit.types.size(); --i >= 0;){
- // ((TypeDeclaration)computedUnit.types.get(i)).parseMethod(parser,
- // computedUnit);
- // }
- // }
-
+ parser.dietParse(sourceUnit, compilationResult, true);
StringBuffer buffer = new StringBuffer(100);
if (compilationResult.hasProblems() || compilationResult.hasTasks()) {
IProblem[] problems = compilationResult.getAllProblems();
CompilationResult compilationResult = new CompilationResult(sourceUnit,
0, 0, 0);
- CompilationUnitDeclaration computedUnit = parser.dietParse(sourceUnit,
- compilationResult, false);
- // if (computedUnit.types != null) {
- // for (int i = computedUnit.types.size(); --i >= 0;){
- // ((TypeDeclaration)computedUnit.types.get(i)).parseMethod(parser,
- // computedUnit);
- // }
- // }
+ parser.dietParse(sourceUnit, compilationResult, false);
StringBuffer buffer = new StringBuffer(100);
if (compilationResult.hasProblems() || compilationResult.hasTasks()) {
* Created on 28.04.2003
*
*/
-package net.sourceforge.phpeclipse.phpeditor.php.test;
+package net.sourceforge.phpdt.internal.formatter;
import java.util.Map;
import net.sourceforge.phpdt.internal.corext.util.Strings;
import net.sourceforge.phpdt.internal.formatter.CodeFormatter;
import net.sourceforge.phpdt.internal.ui.preferences.CodeFormatterPreferencePage;
+import net.sourceforge.phpeclipse.phpeditor.php.test.DummyDocument;
import org.eclipse.jface.text.IDocument;
* @author Stefan Langer
* @version $Revision: 1.7 $
*/
-public class PHPFormatterTest extends TestCase {
+public class CodeFormatterTest extends TestCase {
private CodeFormatter fFormatter;
private IDocument fDocument;
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.4"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="output" path="bin"/>
</classpath>
<name>net.sourceforge.phpeclipse.tests</name>
<comment></comment>
<projects>
- <project>net.sourceforge.phpeclipse</project>
</projects>
<buildSpec>
<buildCommand>
--- /dev/null
+#Thu Oct 26 18:35:19 PDT 2006
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.2
+org.eclipse.jdt.core.compiler.compliance=1.4
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=warning
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=warning
+org.eclipse.jdt.core.compiler.source=1.3
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>\r
-<form>\r
- <p/><p><b>Tips on working with this plug-in project</b></p><li>For the view of the new plug-in at a glance, go to the <img href="pageImage"/><a href="OverviewPage">Overview</a>.</li><li>You can test the contributions of this plug-in by launching another instance of the workbench. On the <b>Run</b> menu, click <b>Run As</b> and choose <img href="runTimeWorkbenchImage"/><a href="action.run">Run-time Workbench</a> from the available choices.</li><li>You can add more functionality to this plug-in by adding extensions using the <a href="action.newExtension">New Extension Wizard</a>.</li><li>The plug-in project contains Java code that you can debug. Place breakpoints in Java classes. On the <b>Run</b> menu, select <b>Debug As</b> and choose <img href="runTimeWorkbenchImage"/><a href="action.debug">Run-time Workbench</a> from the available choices.</li>\r
-</form>\r
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
-Bundle-Name: Core Tests
-Bundle-SymbolicName: net.sourceforge.phpeclipse.tests; singleton:=true
+Bundle-Name: Common Tests Utilities
+Bundle-SymbolicName: net.sourceforge.phpeclipse.tests
Bundle-Version: 1.1.0
Bundle-ClassPath: coretests.jar
-Bundle-Activator: org.eclipse.core.internal.compatibility.PluginActivator
Bundle-Vendor: PHPEclipse project team
Bundle-Localization: plugin
-Require-Bundle: org.eclipse.core.runtime.compatibility,
- org.eclipse.ui,
- org.junit,
- net.sourceforge.phpeclipse,
- org.eclipse.jface.text,
- org.eclipse.core.resources
+Require-Bundle: org.junit
Eclipse-LazyStart: true
-Export-Package: net.sourceforge.phpdt.core.tests.util,
- net.sourceforge.phpeclipse.example.outline,
- net.sourceforge.phpeclipse.phpeditor.php.test,
- net.sourceforge.phpeclipse.tests.parser
+Bundle-RequiredExecutionEnvironment: J2SE-1.4
source.coretests.jar = src/
output.coretests.jar = bin/
bin.includes = coretests.jar,\
- META-INF/,\
- plugin.xml,\
- test.php
-src.includes = test.php,\
- src/,\
- plugin.xml,\
+ META-INF/
+src.includes = src/,\
build.properties,\
META-INF/,\
- .template,\
.project,\
.classpath