@@ -214,28 +214,6 @@ public static function methods($classOrObject, array $only = array())
214214 return self ::double ($ classOrObject , $ params );
215215 }
216216
217- /**
218- * Adds a namespace / namespaces for classes to be searched.
219- * Useful if you have long namespaces and classes there.
220- *
221- * ``` php
222- * <?php
223- * test::ns('Company\App\ProjectBundle');
224- * test::double('Entity\User'); // => Company\App\ProjectBundle\Entity\User
225- *
226- * ?>
227- * ```
228- * Using `ns` helps in refactoring: test doubles do not depend on long class names.
229- *
230- * When declared in `test::double` not exists, AspectMock will try to match it by prepending a namespace.
231- * To ignore namespace guessing, use `\` in the beginning of class name: `\User`;
232- *
233- */
234- public static function ns ($ namespace )
235- {
236- Registry::setNamespace ($ namespace );
237- }
238-
239217 /**
240218 * Replaces function in provided namespace with user-defined function or value that function returns;
241219 * Function is restored to original on cleanup.
@@ -305,7 +283,8 @@ public static function clean($classOrInstance = null)
305283 }
306284
307285 /*
308- * Clears mock verifications, but not stub definitions.
286+ * Clears mock verifications but not stub definitions.
287+ *
309288 *
310289 * @api
311290 */
@@ -316,11 +295,3 @@ public static function cleanInvocations()
316295
317296
318297}
319-
320- function class_exists ($ class_name )
321- {
322- if (\class_exists ($ class_name )) return true ;
323- if (strpos ($ class_name , '\\' ) === 0 ) return false ;
324- return \class_exists (Registry::getNamespace () .'\\' .$ class_name );
325-
326- }
0 commit comments