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

azjezz / psl / 23094245055

14 Mar 2026 06:56PM UTC coverage: 98.499% (-0.06%) from 98.558%
23094245055

push

github

web-flow
bc(io): `Psl\IO\CloseHandleInterface` now requires an `isClosed(): bool` method. (#624)

2 of 6 new or added lines in 5 files covered. (33.33%)

2 existing lines in 1 file now uncovered.

9775 of 9924 relevant lines covered (98.5%)

35.06 hits per line

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

90.0
/src/Psl/File/Internal/AbstractHandleWrapper.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace Psl\File\Internal;
6

7
use Override;
8
use Psl\File;
9
use Psl\File\Lock;
10
use Psl\File\LockType;
11

12
abstract class AbstractHandleWrapper implements File\HandleInterface
13
{
14
    public function __construct(
15
        private File\HandleInterface $handle,
16
    ) {}
42✔
17

18
    /**
19
     * @inheritDoc
20
     */
21
    #[Override]
22
    public function getPath(): string
23
    {
24
        return $this->handle->getPath();
2✔
25
    }
26

27
    /**
28
     * @return int<0, max>
29
     *
30
     * @inheritDoc
31
     */
32
    #[Override]
33
    public function getSize(): int
34
    {
35
        return $this->handle->getSize();
2✔
36
    }
37

38
    /**
39
     * @inheritDoc
40
     */
41
    #[Override]
42
    public function lock(LockType $type): Lock
43
    {
44
        return $this->handle->lock($type);
13✔
45
    }
46

47
    /**
48
     * @inheritDoc
49
     */
50
    #[Override]
51
    public function tryLock(LockType $type): Lock
52
    {
53
        return $this->handle->tryLock($type);
3✔
54
    }
55

56
    /**
57
     * @param int<0, max> $offset
58
     *
59
     * @inheritDoc
60
     */
61
    #[Override]
62
    public function seek(int $offset): void
63
    {
64
        $this->handle->seek($offset);
12✔
65
    }
66

67
    /**
68
     * @return int<0, max>
69
     *
70
     * @inheritDoc
71
     */
72
    #[Override]
73
    public function tell(): int
74
    {
75
        return $this->handle->tell();
3✔
76
    }
77

78
    /**
79
     * @inheritDoc
80
     */
81
    #[Override]
82
    public function isClosed(): bool
83
    {
NEW
84
        return $this->handle->isClosed();
×
85
    }
86

87
    /**
88
     * @inheritDoc
89
     */
90
    #[Override]
91
    public function close(): void
92
    {
93
        $this->handle->close();
35✔
94
    }
95

96
    /**
97
     * @return resource|object|null
98
     *
99
     * @inheritDoc
100
     */
101
    #[Override]
102
    public function getStream(): mixed
103
    {
104
        return $this->handle->getStream();
10✔
105
    }
106
}
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