/**
  * test valid with bogus user agent.
  *
  * @return void
  */
 public function testValidTimeExpiry()
 {
     Configure::write('Session.checkAgent', true);
     TestCakeSession::start();
     $this->assertTrue(TestCakeSession::valid(), 'Newly started session should be valid');
     TestCakeSession::$time = strtotime('next year');
     $this->assertFalse(TestCakeSession::valid(), 'time should cause failure.');
 }