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

azjezz / psl / 11661132391

04 Nov 2024 09:07AM UTC coverage: 98.565% (-0.1%) from 98.691%
11661132391

Pull #500

github

web-flow
Merge 70b4f15c6 into 77af04130
Pull Request #500: feat: Clock component

6 of 13 new or added lines in 3 files covered. (46.15%)

2 existing lines in 1 file now uncovered.

5358 of 5436 relevant lines covered (98.57%)

51.31 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/Psl/Clock/FrozenClock.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace Psl\Clock;
6

7
use Psl\DateTime;
8

9
final class FrozenClock implements ClockInterface
10
{
11
    public function __construct(private DateTime\DateTime $dateTime)
12
    {
NEW
13
    }
×
14

15
    public function synchronize(DateTime\DateTime $dateTime): void
16
    {
NEW
17
        $this->dateTime = $dateTime;
×
18
    }
19

20
    public function now(): DateTime\DateTimeInterface
21
    {
NEW
22
        return $this->dateTime;
×
23
    }
24
}
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

© 2025 Coveralls, Inc