WAMP has nothing to do with names case.
You need to pay attention when you create files.
Naming convention is very important, as in larger projects you might get lost if your class/file names are inconsistent.
Also check your file transfer tool, sometimes there are some setting to rename files to lowercase etc.
EDIT: Well, you could use CFileHelper::findFiles(Yii::getPathOfAlias('application'), array('fileTypes' => array('php')))
, then compare filename with class name. To get class name without including it, use below code snippet from this answer:
$fp = fopen($file, 'r');
$class = $buffer = '';
$i = 0;
while (!$class) {
if (feof($fp)) break;
$buffer .= fread($fp, 512);
$tokens = token_get_all($buffer);
if (strpos($buffer, '{') === false) continue;
for (;$i<count($tokens);$i++) {
if ($tokens[$i][0] === T_CLASS) {
for ($j=$i+1;$j<count($tokens);$j++) {
if ($tokens[$j] === '{') {
$class = $tokens[$i+2][1];
}
}
}
}
}
Side note: To avoid bugs, use decent IDE like Eclipse or NetBeans and use new PHP Class
instead of new PHP File
option.