public function testGetProvidersReturnsProviders() { $this->_repository->addProvider(new Zend_Tool_Framework_Provider_ProviderOne()); $this->_repository->addProvider(new Zend_Tool_Framework_Provider_ProviderTwo()); $this->_repository->process(); $this->assertEquals(2, count($this->_repository)); foreach ($this->_repository->getProviders() as $provider) { $this->assertTrue($provider instanceof Zend_Tool_Framework_Provider_Interface); } }
public function testGetProvidersReturnsProviders() { $this->_repository->addProvider(new \ZendTest\Tool\Framework\Provider\TestAsset\ProviderOne()); $this->_repository->addProvider(new \ZendTest\Tool\Framework\Provider\TestAsset\ProviderTwo()); $this->_repository->process(); $this->assertEquals(2, count($this->_repository)); foreach ($this->_repository->getProviders() as $provider) { $this->assertTrue($provider instanceof Provider); } }