/** * Wakeup from serialization * * Reflection needs explicit instantiation to work correctly. Re-instantiate * reflection object on wakeup. * * @return void */ public function __wakeup() { $this->_classReflection = new Zend_Server_Reflection_Class(new ReflectionClass($this->_class), $this->getNamespace(), $this->getInvokeArguments()); $this->_reflection = new ReflectionMethod($this->_classReflection->getName(), $this->getName()); }
/** * __call() test * * Call as method call * * Expects: * - method: * - args: * * Returns: mixed */ public function test__call() { $r = new Zend_Server_Reflection_Class(new ReflectionClass('Zend_Server_Reflection')); $this->assertTrue(is_string($r->getName())); $this->assertEquals('Zend_Server_Reflection', $r->getName()); }