我已经在Eclipse Luna中安装了PTI插件,以便使用PHPUnit。每当我尝试从现有的php类创建一个测试用例(右键单击php文件 - > New - > New PHPUnit Test case)时,对话框就不起作用了(#34; Finish"按钮似乎什么都不做):
检查Eclipse日志后,我发现了这个错误:
org.eclipse.ui错误Thu Jul 23 19:09:39 CEST 2015未处理的事件 循环异常
java.lang.NoSuchMethodError: org.eclipse.php.internal.debug.core.preferences.PHPDebuggersRegistry.getDebuggerConfiguration(Ljava /郎/字符串;)Lorg /蚀/ PHP /内部/调试/型芯/调试器/ AbstractDebuggerConfiguration; 在 org.phpsrc.eclipse.pti.core.launching.PHPToolLauncher.createConfiguration(PHPToolLauncher.java:376) 在 org.phpsrc.eclipse.pti.core.launching.PHPToolLauncher.findLaunchConfiguration(PHPToolLauncher.java:265) 在 org.phpsrc.eclipse.pti.core.launching.PHPToolLauncher.launch(PHPToolLauncher.java:136) 在 org.phpsrc.eclipse.pti.core.launching.PHPToolLauncher.launch(PHPToolLauncher.java:117) 在 org.phpsrc.eclipse.pti.tools.phpunit.core.PHPUnit.createSkeleton(PHPUnit.java:178) 在 org.phpsrc.eclipse.pti.tools.phpunit.core.PHPUnit.createTestSkeleton(PHPUnit.java:131) 在 org.phpsrc.eclipse.pti.tools.phpunit.core.PHPUnitUtil.syncPHPClassToTestCase(PHPUnitUtil.java:174) 在 org.phpsrc.eclipse.pti.tools.phpunit.ui.wizards.CreatePHPUnitTestCaseWizard.performFinish(CreatePHPUnitTestCaseWizard.java:33) 在 org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:853) 在 org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:438) 在org.eclipse.jface.dialogs.Dialog $ 2.widgetSelected(Dialog.java:619) 在 org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248) 在org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) 在org.eclipse.swt.widgets.Display.sendEvent(Display.java:4454)at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1388)at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3799) 在org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3409) 在org.eclipse.jface.window.Window.runEventLoop(Window.java:832)at org.eclipse.jface.window.Window.open(Window.java:808)at org.eclipse.ui.internal.actions.NewWizardShortcutAction.run(NewWizardShortcutAction.java:136) 在org.eclipse.jface.action.Action.runWithEvent(Action.java:519)at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:595) 在 org.eclipse.jface.action.ActionContributionItem.access $ 2(ActionContributionItem.java:511) 在 org.eclipse.jface.action.ActionContributionItem $ 5.handleEvent(ActionContributionItem.java:420) 在org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) 在org.eclipse.swt.widgets.Display.sendEvent(Display.java:4454)at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1388)at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3799) 在org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3409) 在 org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine $ 9.run(PartRenderingEngine.java:1151) 在 org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) 在 org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032) 在 org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148) 在org.eclipse.ui.internal.Workbench $ 5.run(Workbench.java:636)at at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) 在 org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579) 在 org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150) 在 org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135) 在 org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) 在 org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134) 在 org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104) 在 org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380) 在 org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 在 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 在java.lang.reflect.Method.invoke(Method.java:606)at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)at at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)at at org.eclipse.equinox.launcher.Main.run(Main.java:1465)at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
任何帮助将不胜感激。非常感谢你。