FIX: need to upper-case each word, not just first word

This commit is contained in:
Jeremy Thomerson 2013-07-04 19:44:38 -04:00
parent 3928919964
commit 002193e114

View File

@ -409,7 +409,7 @@ class FixtureContext extends BehatContext
$type = trim($type);
// Try direct mapping
$class = str_replace(' ', '', ucfirst($type));
$class = str_replace(' ', '', ucwords($type));
if(class_exists($class) || !is_a($class, 'DataObject', true)) {
return $class;
}