Esempio n. 1
0
 /**
  * @covers ZfcUser\Authentication\Adapter\Db::setServiceManager
  * @covers ZfcUser\Authentication\Adapter\Db::getServiceManager
  */
 public function testSetGetServicemanager()
 {
     $sm = $this->getMock('Zend\\ServiceManager\\ServiceManager');
     $this->db->setServiceManager($sm);
     $serviceManager = $this->db->getServiceManager();
     $this->assertInstanceOf('Zend\\ServiceManager\\ServiceLocatorInterface', $serviceManager);
     $this->assertSame($sm, $serviceManager);
 }
Esempio n. 2
0
 /**
  * @covers ZfcUser\Authentication\Adapter\Db::getServiceManager
  * @covers ZfcUser\Authentication\Adapter\Db::setServiceManager
  */
 public function testGetServiceManager()
 {
     $this->assertSame($this->services, $this->db->getServiceManager());
 }