Permalink
Browse files

test cleanup

  • Loading branch information...
1 parent 8af2409 commit c24acc6dc8161d465e8f758196105854553b6d6c @stefanotorresi committed Sep 27, 2013
Showing with 8 additions and 8 deletions.
  1. +8 −8 tests/ZendTest/ServiceManager/AbstractPluginManagerTest.php
View
16 tests/ZendTest/ServiceManager/AbstractPluginManagerTest.php
@@ -119,19 +119,19 @@ public function testCallableObjectWithMutableCreationOptions()
$method->invoke($this->pluginManager, $callable, 'foo', 'bar');
}
- public function testValidatePluginGetsCalledOnDelegatorFactoryIfItsAService()
+ public function testValidatePluginIsCalledWithDelegatorFactoryIfItsAService()
{
- $pluginManagerMock = $this->getMockForAbstractClass('Zend\ServiceManager\AbstractPluginManager');
- $delegatorFactoryMock = $this->getMock('Zend\\ServiceManager\\DelegatorFactoryInterface');
+ $pluginManager = $this->getMockForAbstractClass('Zend\ServiceManager\AbstractPluginManager');
+ $delegatorFactory = $this->getMock('Zend\\ServiceManager\\DelegatorFactoryInterface');
- $pluginManagerMock->setService('delegator-factory', $delegatorFactoryMock);
- $pluginManagerMock->addDelegator('foo-service', 'delegator-factory');
+ $pluginManager->setService('delegator-factory', $delegatorFactory);
+ $pluginManager->addDelegator('foo-service', 'delegator-factory');
- $pluginManagerMock->expects($this->once())
+ $pluginManager->expects($this->once())
->method('validatePlugin')
- ->with($delegatorFactoryMock);
+ ->with($delegatorFactory);
- $pluginManagerMock->create('foo-service');
+ $pluginManager->create('foo-service');
}
public function testSingleDelegatorUsage()

0 comments on commit c24acc6

Please sign in to comment.