سؤال

I have a preDispatch plugin that sets setExpirationSeconds to a setting in my application.ini.

I am trying to write a PHPUnit test for this. Is there a way I can get the Expiration Seconds to compare it to my application.ini setting?

هل كانت مفيدة؟

المحلول

You could access the Session variable used by Zend Session, to check if the correct time is passed to the object.

$_SESSION['__ZF']['Default']['ENT'];
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top