/**
* The session handler.
*
- * @var Horde_Kolab_Session
+ * @var Horde_Kolab_Session_Interface
*/
private $_session;
/**
* The session factory.
*
- * @var Horde_Kolab_Session_Factory
+ * @var Horde_Kolab_Session_Factory_Interface
*/
private $_factory;
/**
* Set the session handler.
*
- * @param Horde_Kolab_Session $session The session handler.
+ * @param Horde_Kolab_Session_Interface $session The session handler.
*
* @return NULL
*/
- public function setSession(Horde_Kolab_Session $session)
+ public function setSession(Horde_Kolab_Session_Interface $session)
{
$this->_session = $session;
}
/**
* Set the session factory.
*
- * @param Horde_Kolab_Session_Factory $factory The session factory.
+ * @param Horde_Kolab_Session_Factory_Interface $factory The session factory.
*
* @return NULL
*/
- public function setSessionFactory(Horde_Kolab_Session_Factory $factory)
+ public function setSessionFactory(Horde_Kolab_Session_Factory_Interface $factory)
{
$this->_factory = $factory;
}
/**
* Retrieve a connected kolab session.
*
- * @return Horde_Kolab_Session The connected session.
+ * @return Horde_Kolab_Session_Interface The connected session.
*
* @throws Horde_Kolab_Session_Exception
*/
$this->markTestSkipped('The PEAR_LOG_DEBUG constant is not available!');
}
- $this->session = $this->getMock('Horde_Kolab_Session');
- $this->factory = $this->getMock('Horde_Kolab_Session_Factory');
+ $this->session = $this->getMock('Horde_Kolab_Session_Interface');
+ $this->factory = $this->getMock('Horde_Kolab_Session_Factory_Interface');
if (!defined('HORDE_BASE')) {
define('HORDE_BASE', '/nowhere');
$auth = new Horde_Auth_Kolab();
$auth->setSession($this->session);
$this->assertType(
- 'Horde_Kolab_Session',
+ 'Horde_Kolab_Session_Interface',
$auth->getSession('user', array('password' => 'test'))
);
}
->with('user', array('password' => 'test'))
->will($this->returnValue($this->session));
$this->assertType(
- 'Horde_Kolab_Session',
+ 'Horde_Kolab_Session_Interface',
$auth->getSession('user', array('password' => 'test'))
);
}