public function testGetActionableMethodByActionNameReturnsCorrectActionableMethod() { $actionableMethod = $this->_targetSignature->getActionableMethodByActionName('Scream'); $this->assertEquals('scream', $actionableMethod['methodName']); $this->assertFalse($this->_targetSignature->getActionableMethodByActionName('Foo')); }
/** * Process all of the unprocessed providers * */ public function process() { // process all providers in the unprocessedProviders array //foreach ($this->_unprocessedProviders as $providerName => $provider) { reset($this->_unprocessedProviders); while ($this->_unprocessedProviders) { $providerName = key($this->_unprocessedProviders); $provider = array_shift($this->_unprocessedProviders); // create a signature for the provided provider $providerSignature = new Zend_Tool_Framework_Provider_Signature($provider); if ($providerSignature instanceof Zend_Tool_Framework_Registry_EnabledInterface) { $providerSignature->setRegistry($this->_registry); } $providerSignature->process(); // ensure the name is lowercased for easier searching $providerName = strtolower($providerName); // add to the appropraite place $this->_providerSignatures[$providerName] = $providerSignature; $this->_providers[$providerName] = $providerSignature->getProvider(); if ($provider instanceof Zend_Tool_Framework_Provider_Initializable) { $provider->initialize(); } } }
/** * Process all of the unprocessed providers * */ public function process() { // process all providers in the unprocessedProviders array foreach ($this->_unprocessedProviders as $providerName => $provider) { // create a signature for the provided provider $providerSignature = new Zend_Tool_Framework_Provider_Signature($provider); if ($providerSignature instanceof Zend_Tool_Framework_Registry_EnabledInterface) { $providerSignature->setRegistry($this->_registry); } $providerSignature->process(); // ensure the name is lowercased for easier searching $providerName = strtolower($providerName); // add to the appropraite place $this->_providerSignatures[$providerName] = $providerSignature; $this->_providers[$providerName] = $providerSignature->getProvider(); // remove from unprocessed array unset($this->_unprocessedProviders[$providerName]); } }