public function testHasExpired() {
$key = 'asdf';
$expiresKey = 'asdf.expires';
$thePast = 0;
$this->inner
->expects($this
->once())
->method('has')
->with($key)
->will($this
->returnValue(true));
$this->inner
->expects($this
->once())
->method('get')
->with($expiresKey)
->will($this
->returnValue($thePast));
$this->inner
->expects($this
->at(2))
->method('remove')
->with($expiresKey);
$this->inner
->expects($this
->at(3))
->method('remove')
->with($key);
$this
->assertFalse($this->cache
->has($key), '->has() returns false if an expired value exists');
}