| Total Complexity | 4 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 13 | final class TestEnvelope |
||
| 14 | { |
||
| 15 | private Envelope $envelope; |
||
| 16 | |||
| 17 | public function __construct(Envelope $envelope) |
||
| 18 | { |
||
| 19 | $this->envelope = $envelope; |
||
| 20 | } |
||
| 21 | |||
| 22 | public function __call($name, $arguments) |
||
| 23 | { |
||
| 24 | return $this->envelope->{$name}(...$arguments); |
||
| 25 | } |
||
| 26 | |||
| 27 | public function assertHasStamp(string $class): self |
||
| 28 | { |
||
| 29 | PHPUnit::assertNotEmpty($this->envelope->all($class)); |
||
| 30 | |||
| 31 | return $this; |
||
| 32 | } |
||
| 33 | |||
| 34 | public function assertNotHasStamp(string $class): self |
||
| 39 | } |
||
| 40 | } |
||
| 41 |