From c630eca2872e629cb5775d1f08865b21a4a8dbe3 Mon Sep 17 00:00:00 2001 From: Pablo Castorino Date: Tue, 10 Dec 2013 11:50:16 -0300 Subject: [PATCH] FIX: problem with backslash's classname on linux. add single quotes. --- src/org/phpsrc/eclipse/pti/tools/phpunit/core/PHPUnit.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/org/phpsrc/eclipse/pti/tools/phpunit/core/PHPUnit.java b/src/org/phpsrc/eclipse/pti/tools/phpunit/core/PHPUnit.java index 50d6f32..b29b157 100644 --- a/src/org/phpsrc/eclipse/pti/tools/phpunit/core/PHPUnit.java +++ b/src/org/phpsrc/eclipse/pti/tools/phpunit/core/PHPUnit.java @@ -165,11 +165,11 @@ private void createSkeleton(String className, IFile classFile, oldClass.getElementName()); } - String cmdLineArgs = "--" + skeletonOption + " " + className; + String cmdLineArgs = "--" + skeletonOption + " '" + className + "'"; cmdLineArgs += " " + OperatingSystem.escapeShellFileArg(classFile.getLocation() .toOSString()); - cmdLineArgs += " " + targetClassName; + cmdLineArgs += " '" + targetClassName + "'"; cmdLineArgs += " " + OperatingSystem.escapeShellFileArg(testClassLocation);