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

tempestphp / tempest-framework / 14423395857

12 Apr 2025 09:09PM UTC coverage: 80.081% (-1.1%) from 81.217%
14423395857

Pull #1149

github

web-flow
Merge f348cc6cd into 0c553d46c
Pull Request #1149: feat(storage): add storage component

151 of 390 new or added lines in 21 files covered. (38.72%)

11699 of 14609 relevant lines covered (80.08%)

104.65 hits per line

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

8.7
/src/Tempest/Storage/src/Testing/RestrictedStorage.php
1
<?php
2

3
namespace Tempest\Storage\Testing;
4

5
use DateTimeInterface;
6
use Tempest\Storage\DirectoryListing;
7
use Tempest\Storage\ForbiddenStorageUsageException;
8
use Tempest\Storage\Storage;
9

10
final readonly class RestrictedStorage implements Storage
11
{
12
    public function __construct(
1✔
13
        private ?string $tag = null,
14
    ) {}
1✔
15

16
    public function write(string $location, string $contents): static
1✔
17
    {
18
        throw new ForbiddenStorageUsageException($this->tag);
1✔
19
    }
20

NEW
21
    public function writeStream(string $location, mixed $contents): static
×
22
    {
NEW
23
        throw new ForbiddenStorageUsageException($this->tag);
×
24
    }
25

NEW
26
    public function read(string $location): string
×
27
    {
NEW
28
        throw new ForbiddenStorageUsageException($this->tag);
×
29
    }
30

NEW
31
    public function readStream(string $location): mixed
×
32
    {
NEW
33
        throw new ForbiddenStorageUsageException($this->tag);
×
34
    }
35

NEW
36
    public function fileExists(string $location): bool
×
37
    {
NEW
38
        throw new ForbiddenStorageUsageException($this->tag);
×
39
    }
40

NEW
41
    public function directoryExists(string $location): bool
×
42
    {
NEW
43
        throw new ForbiddenStorageUsageException($this->tag);
×
44
    }
45

NEW
46
    public function fileOrDirectoryExists(string $location): bool
×
47
    {
NEW
48
        throw new ForbiddenStorageUsageException($this->tag);
×
49
    }
50

NEW
51
    public function delete(string $location): static
×
52
    {
NEW
53
        throw new ForbiddenStorageUsageException($this->tag);
×
54
    }
55

NEW
56
    public function deleteDirectory(?string $location = ''): static
×
57
    {
NEW
58
        throw new ForbiddenStorageUsageException($this->tag);
×
59
    }
60

NEW
61
    public function createDirectory(?string $location = ''): static
×
62
    {
NEW
63
        throw new ForbiddenStorageUsageException($this->tag);
×
64
    }
65

NEW
66
    public function cleanDirectory(?string $location = ''): static
×
67
    {
NEW
68
        throw new ForbiddenStorageUsageException($this->tag);
×
69
    }
70

NEW
71
    public function move(string $source, string $destination): static
×
72
    {
NEW
73
        throw new ForbiddenStorageUsageException($this->tag);
×
74
    }
75

NEW
76
    public function copy(string $source, string $destination): static
×
77
    {
NEW
78
        throw new ForbiddenStorageUsageException($this->tag);
×
79
    }
80

NEW
81
    public function fileSize(string $location): int
×
82
    {
NEW
83
        throw new ForbiddenStorageUsageException($this->tag);
×
84
    }
85

NEW
86
    public function lastModified(string $location): int
×
87
    {
NEW
88
        throw new ForbiddenStorageUsageException($this->tag);
×
89
    }
90

NEW
91
    public function mimeType(string $location): string
×
92
    {
NEW
93
        throw new ForbiddenStorageUsageException($this->tag);
×
94
    }
95

NEW
96
    public function setVisibility(string $location, string $visibility): static
×
97
    {
NEW
98
        throw new ForbiddenStorageUsageException($this->tag);
×
99
    }
100

NEW
101
    public function visibility(string $location): string
×
102
    {
NEW
103
        throw new ForbiddenStorageUsageException($this->tag);
×
104
    }
105

NEW
106
    public function publicUrl(string $location): string
×
107
    {
NEW
108
        throw new ForbiddenStorageUsageException($this->tag);
×
109
    }
110

NEW
111
    public function temporaryUrl(string $location, DateTimeInterface $expiresAt): string
×
112
    {
NEW
113
        throw new ForbiddenStorageUsageException($this->tag);
×
114
    }
115

NEW
116
    public function checksum(string $location): string
×
117
    {
NEW
118
        throw new ForbiddenStorageUsageException($this->tag);
×
119
    }
120

NEW
121
    public function list(string $location = '', bool $deep = false): DirectoryListing
×
122
    {
NEW
123
        throw new ForbiddenStorageUsageException($this->tag);
×
124
    }
125
}
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