* @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);