added class fields to outline
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / core / PackageFragment.java
index ea8f6b4..760e09e 100644 (file)
@@ -236,7 +236,7 @@ protected Object createElementInfo() {
  * @exception IllegalArgumentExcpetion if the name does not end with ".java"
  */
 public ICompilationUnit getCompilationUnit(String cuName) {
-       if (!  PHPFileUtil.isPHPFileName(cuName)) {
+       if (!  PHPFileUtil.isValidPHPUnitName(cuName)) {
                throw new IllegalArgumentException(Util.bind("convention.unit.notJavaName")); //$NON-NLS-1$
        }
        return new CompilationUnit(this, cuName, DefaultWorkingCopyOwner.PRIMARY);