From cb0977ce9ff1fa207d80fc4df7e51271f468c7fe Mon Sep 17 00:00:00 2001 From: Simon Welsh Date: Sun, 5 May 2013 11:43:56 +1200 Subject: [PATCH] Remove duplicate parse_class_spec method. --- tests/injector/InjectorTest.php | 71 +-------------------------------- 1 file changed, 1 insertion(+), 70 deletions(-) diff --git a/tests/injector/InjectorTest.php b/tests/injector/InjectorTest.php index 16cc4942e..61e11dce4 100644 --- a/tests/injector/InjectorTest.php +++ b/tests/injector/InjectorTest.php @@ -671,78 +671,9 @@ class SSObjectCreator extends InjectionCreator { if (strpos($class, '(') === false) { return parent::create($class, $params); } else { - list($class, $params) = self::parse_class_spec($class); + list($class, $params) = Object::parse_class_spec($class); $params = $this->injector->convertServiceProperty($params); return parent::create($class, $params); } } - - /** - * Parses a class-spec, such as "Versioned('Stage','Live')", as passed to create_from_string(). - * Returns a 2-elemnent array, with classname and arguments - */ - public static function parse_class_spec($classSpec) { - $tokens = token_get_all("