0

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?

bconrad
  • 402
  • 4
  • 14
  • you could check: $_SESSION['__ZF']['Default']['ENT']; – opHASnoNAME Jun 15 '12 at 07:26
  • 1
    Nice. I should have checked the code for setExpirationSeconds and I could have figured this out myself. If you post this post this as an answer, I'll mark it correct. – bconrad Jun 15 '12 at 15:33

1 Answers1

1

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'];
opHASnoNAME
  • 20,224
  • 26
  • 98
  • 143