lithium\test\Mocker::_namespace()
Will generate the namespace from the current mockee.
Parameters
-
string
$mockeeThe fully namespaced
\Mockclass
Returns
stringSource
protected static function _namespace($mockee) {
$matches = array();
preg_match_all('/^(.*)\\\\Mock$/', $mockee, $matches);
return isset($matches[1][0]) ? $matches[1][0] : null;
}