/** * Gets Classinfos for the className - using the cache and the factory * * @param string $className * @return Tx_Extbase_Object_Container_ClassInfo */ private function getClassInfo($className) { // we also need to make sure that the cache is returning a vaild object // in case something went wrong with unserialization etc.. if (!$this->cache->has($className) || !is_object($this->cache->get($className))) { $this->cache->set($className, $this->classInfoFactory->buildClassInfoFromClassName($className)); } return $this->cache->get($className); }
/** * @test */ public function buildClassInfoDoesNotIncludeInjectSettingsMethodInListOfInjectMethods() { $classInfo = $this->classInfoFactory->buildClassInfoFromClassName('t3lib_object_tests_class_with_injectsettings'); $this->assertEquals(array('injectFoo' => 't3lib_object_tests_resolveablecyclic1'), $classInfo->getInjectMethods()); }