From 002193e114633db3431f8c759e8af4696f729d55 Mon Sep 17 00:00:00 2001 From: Jeremy Thomerson Date: Thu, 4 Jul 2013 19:44:38 -0400 Subject: [PATCH] FIX: need to upper-case each word, not just first word --- src/SilverStripe/BehatExtension/Context/FixtureContext.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SilverStripe/BehatExtension/Context/FixtureContext.php b/src/SilverStripe/BehatExtension/Context/FixtureContext.php index 6911752..7935c28 100644 --- a/src/SilverStripe/BehatExtension/Context/FixtureContext.php +++ b/src/SilverStripe/BehatExtension/Context/FixtureContext.php @@ -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; }