lithium\test\Mocker::_namespace()

protected static method

Will generate the namespace from the current mockee.

Parameters

  • string $mockee

    The fully namespaced \Mock class

Returns

string

Source

	protected static function _namespace($mockee) {
		$matches = [];
		preg_match_all('/^(.*)\\\\Mock$/', $mockee, $matches);
		return isset($matches[1][0]) ? $matches[1][0] : null;
	}