*/ class ConfigServiceFactoryTest extends PHPUnit_Framework_TestCase { /** * @covers \BjyAuthorize\Service\ConfigServiceFactory::createService */ public function testCreateService() { $factory = new ConfigServiceFactory(); $serviceLocator = $this->getMock('Zend\\ServiceManager\\ServiceLocatorInterface'); $serviceLocator ->expects($this->any()) ->method('get') ->will($this->returnValue(array('bjyauthorize' => array('foo' => 'bar')))); $this->assertSame(array('foo' => 'bar'), $factory->createService($serviceLocator)); } }