• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

nette / http / 26789762594
84%
master: 82%

Build:
Build:
LAST BUILD BRANCH: v3.4
DEFAULT BRANCH: master
Ran 02 Jun 2026 12:04AM UTC
Jobs 1
Files 20
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

02 Jun 2026 12:03AM UTC coverage: 83.886% (-0.03%) from 83.912%
26789762594

push

github

dg
Helpers: added expirationToSeconds() unifying expiration parsing

A numeric value (including a numeric string) is taken directly as the number of
seconds, a DateTimeInterface or a textual string (e.g. '20 minutes',
'2024-01-01') is resolved as an absolute time, and null means "no value". An
empty string is rejected as it is never meaningful.

The helper is a pure parser and applies no policy - each caller decides what
null or a non-positive result means in its own context:

- Response::setExpiration(): null or a non-positive time disables caching
- Session::setExpiration(): null restores the default lifetime, a non-positive
  time throws (a lifetime in the past makes no sense)
- SessionSection::setExpiration(): null clears the expiration
- Response::setCookie(): null is a session cookie, a non-positive time deletes
  it; passing integer 0 (which used to mean a session cookie) is deprecated in
  favour of null

23 of 31 new or added lines in 4 files covered. (74.19%)

34 existing lines in 3 files now uncovered.

1062 of 1266 relevant lines covered (83.89%)

0.84 hits per line

Uncovered Changes

Lines Coverage ∆ File
6
47.13
0.0% src/Http/Response.php
2
77.72
0.0% src/Http/Session.php

Coverage Regressions

Lines Coverage ∆ File
18
47.13
0.0% src/Http/Response.php
12
70.49
0.0% src/Http/SessionSection.php
4
77.72
0.0% src/Http/Session.php
Jobs
ID Job ID Ran Files Coverage
1 26789762594.1 02 Jun 2026 12:04AM UTC 20
83.89
GitHub Action Run
Source Files on build 26789762594
  • Tree
  • List 20
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 7d18ec89 on github
  • Prev Build on v3.4 (#26789697442)
  • Next Build on v3.4 (#26790553162)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc